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
Line 20: Line 20:
 
***''Sample : (spm_cssetdrawingcrs 23030)''
 
***''Sample : (spm_cssetdrawingcrs 23030)''
 
*'''Data management'''
 
*'''Data management'''
**'''Set the value of a data field:''' (spm_fdsetfieldvalue "TableName" "FieldName" "Value")
+
**'''Set the value of a data field for the selectd objects:''' (spm_fdsetfieldvalue "TableName" "FieldName" "Value")
***'''(xyz) : Point source coordinates''
+
***''TableName : Name of an existing Table''
***''SourceCRS# : Source CRS code''
+
***''FieldName : Name of an existing Field in the above table''
***''TargetCRS# : Target CRS code''
+
***''Value : Value for the above Field''
***''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)''
  

Revision as of 05:11, 10 April 2022

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)
  • Data management
    • Set the value of a data field for the selectd objects: (spm_fdsetfieldvalue "TableName" "FieldName" "Value")
      • TableName : Name of an existing Table
      • FieldName : Name of an existing Field in the above table
      • Value : Value for the above Field
      • Sample : (spm_cstransformpoint '(-2.5548 43.2148 0) 4326 23030 1133)


Notes:


Related links


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