Difference between revisions of "Spatial Manager™ for AutoCAD - FAQs: Application Programming Interface (API) ("Professional" edition only)"

From Spatial Manager Wiki
Jump to navigation Jump to search
m
m
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
[[image:SPM AutoCAD Wiki to Website.png|150px|link=http://www.spatialmanager.com/spm-forautocad/ |Spatial Manager™ for AutoCAD product page]] [[image:SPM AutoCAD Wiki to Download.png|150px|link=http://www.spatialmanager.com/download/spatial-manager-autocad/ |Download Spatial Manager™ for AutoCAD]]
 +
 +
 +
 
The Application Programming Interface (API) is currently under development. Next you can find the available functionality:
 
The Application Programming Interface (API) is currently under development. Next you can find the available functionality:
  
  
 
==LISP==
 
==LISP==
*Coordinate Systems (CRS)
+
*'''Coordinate Systems (CRS)'''
 
**'''Transform the coordinates of a point:''' (spm_cstransformpoint '(x y z) SourceCRS# TargetCRS# [Tranformation#])
 
**'''Transform the coordinates of a point:''' (spm_cstransformpoint '(x y z) SourceCRS# TargetCRS# [Tranformation#])
 
***'''(xyz) : Point source coordinates''
 
***'''(xyz) : Point source coordinates''
Line 10: Line 14:
 
***''Transformation# : Transformation code (Optional)''
 
***''Transformation# : Transformation code (Optional)''
 
***''Sample : (spm_cstransformpoint '(-2.5548 43.2148 0) 4326 23030 1133)''
 
***''Sample : (spm_cstransformpoint '(-2.5548 43.2148 0) 4326 23030 1133)''
 +
**'''Get the current drawing CRS Code:''' (spm_csgetdrawingcrscode)
 +
**'''Get the current drawing CRS Name:''' (spm_csgetdrawingcrsname)
 +
**'''Assign a CRS to the drawing:''' (spm_cssetdrawingcrs CRS#)
 +
***''CRS# : CRS Code''
 +
***''Sample : (spm_cssetdrawingcrs 23030)''
  
**'''Transform the coordinates of a point:''' (spm_cstransformpoint '(x y z) SourceCRS# TargetCRS# [Tranformation#])
+
 
***'''(xyz) : Point source coordinates''
+
''Notes:''
***''SourceCRS# : Source CRS code''
+
*''To learn more about CRSs and Transformations details, please go to the [[Coordinate Systems and Transformation details | Coordinate Systems and Transformation details]] page''
***''TargetCRS# : Target CRS code''
+
*''To learn more about the CRS and Transformation codes, please go to the [[Coordinate_Systems_objects_list|Coordinate Systems objects list]] page''
***''Transformation# : Transformation code (Optional)''
 
***''Sample : (spm_cstransformpoint '(-2.5548 43.2148 0) 4326 23030 1133)''
 
  
  
  
''Note: To learn more about the CRS and Transformation codes please go to the [[Coordinate_Systems_objects_list|Coordinate Systems objects list]] page''
+
==Related links==
  
 +
*[[Spatial Manager™ for AutoCAD#FAQs|Go to FAQS]]
  
  
==Related links==
 
  
*[[Spatial Manager™ for AutoCAD#FAQs|Go to FAQS]]
+
[[image:SPM AutoCAD Wiki to Website.png|150px|link=http://www.spatialmanager.com/spm-forautocad/ |Spatial Manager™ for AutoCAD product page]] [[image:SPM AutoCAD Wiki to Download.png|150px|link=http://www.spatialmanager.com/download/spatial-manager-autocad/ |Download Spatial Manager™ for AutoCAD]]

Revision as of 12:10, 25 November 2019

Spatial Manager™ for AutoCAD product page Download Spatial Manager™ for AutoCAD


The Application Programming Interface (API) is currently under development. Next you can find the available functionality:


LISP

  • Coordinate Systems (CRS)
    • Transform the coordinates of a point: (spm_cstransformpoint '(x y z) SourceCRS# TargetCRS# [Tranformation#])
      • '(xyz) : Point source coordinates
      • SourceCRS# : Source CRS code
      • TargetCRS# : Target CRS code
      • Transformation# : Transformation code (Optional)
      • Sample : (spm_cstransformpoint '(-2.5548 43.2148 0) 4326 23030 1133)
    • Get the current drawing CRS Code: (spm_csgetdrawingcrscode)
    • Get the current drawing CRS Name: (spm_csgetdrawingcrsname)
    • Assign a CRS to the drawing: (spm_cssetdrawingcrs CRS#)
      • CRS# : CRS Code
      • Sample : (spm_cssetdrawingcrs 23030)


Notes:


Related links


Spatial Manager™ for AutoCAD product page Download Spatial Manager™ for AutoCAD