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

From Spatial Manager Wiki
Jump to navigation Jump to search
(Created page with "The Application Programming Interface (API) is currently under development. Next you can find the available functionality: ==LISP== *'''Transform the coordinates of a point:...")
 
m
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
[[image:SPM BricsCAD Wiki to Website.png|150px|link=https://www.spatialmanager.com/spm-forbricscad/ |Spatial Manager™ for BricsCAD product page]] [[image:SPM BricsCAD Wiki to Download.png|150px|link=https://www.spatialmanager.com/download/spatial-manager-bricscad/ |Download Spatial Manager™ for BricsCAD]]
 +
 +
 +
 
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==
*'''Transform the coordinates of a point:''' (spm_cstransformpoint '(x y z) SourceCRS# TargetCRS# [Tranformation#])
+
*'''Coordinate Systems (CRS)'''
**'''(xyz) : Point source coordinates''
+
**'''Transform the coordinates of a point:''' (spm_cstransformpoint '(x y z) SourceCRS# TargetCRS# [Tranformation#])
**''SourceCRS# : Source CRS code''
+
***'''(xyz) : Point source coordinates''
**''TargetCRS# : Target CRS code''
+
***''SourceCRS# : Source CRS code''
**''Transformation# : Transformation code (Optional)''
+
***''TargetCRS# : Target CRS code''
**''Sample : (spm_cstransformpoint '(-2.5548 43.2148 0) 4326 23030 1133)''
+
***''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'''
 +
**'''Attach a data table to the selected objects:''' (spm_fdattachtable "TableName")
 +
***''TableName : Name of an existing Table''
 +
***''Sample : (spm_fdattachtable "Census")''
 +
**'''Set the value of a data field for the selected 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_fdsetfieldvalue "Census" "TRACK" "99")''
 +
**'''Get the value of a data field for the selected object:''' (spm_fdgetfieldvalue "TableName" "FieldName")
 +
***''TableName : Name of an existing Table''
 +
***''FieldName : Name of an existing Field in the above table''
 +
***''Sample : (spm_fdgetfieldvalue "Census" "TRACK")''
  
''Note: To learn more about the CRS and Transformation codes please go to the [[Coordinate_Systems_objects_list|Coordinate Systems objects list]] page''
+
 
 +
''Notes:''
 +
*''To learn more about CRSs and Transformations details, please go to the [[Coordinate Systems and Transformation details | Coordinate Systems and Transformation details]] page''
 +
*''To learn more about the CRS and Transformation codes, please go to the [[Coordinate_Systems_objects_list|Coordinate Systems objects list]] page''
 +
*''To learn more about Data Tables, please go to the [[Spatial_Manager™_for_BricsCAD_-_FAQs:_Data_Structure_Management_("Standard"_and_"Professional"_editions_only)|Data Structure Management]] page''
  
  
Line 16: Line 43:
 
==Related links==
 
==Related links==
  
*[[Spatial Manager™ for AutoCAD#FAQs|Go to FAQS]]
+
*[[Spatial Manager™ for BricsCAD#FAQs|Go to FAQS]]
 +
 
 +
 
 +
 
 +
[[image:SPM BricsCAD Wiki to Website.png|150px|link=https://www.spatialmanager.com/spm-forbricscad/ |Spatial Manager™ for BricsCAD product page]] [[image:SPM BricsCAD Wiki to Download.png|150px|link=https://www.spatialmanager.com/download/spatial-manager-bricscad/ |Download Spatial Manager™ for BricsCAD]]

Latest revision as of 05:25, 10 April 2022

Spatial Manager™ for BricsCAD product page Download Spatial Manager™ for BricsCAD


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
    • Attach a data table to the selected objects: (spm_fdattachtable "TableName")
      • TableName : Name of an existing Table
      • Sample : (spm_fdattachtable "Census")
    • Set the value of a data field for the selected 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_fdsetfieldvalue "Census" "TRACK" "99")
    • Get the value of a data field for the selected object: (spm_fdgetfieldvalue "TableName" "FieldName")
      • TableName : Name of an existing Table
      • FieldName : Name of an existing Field in the above table
      • Sample : (spm_fdgetfieldvalue "Census" "TRACK")


Notes:


Related links


Spatial Manager™ for BricsCAD product page Download Spatial Manager™ for BricsCAD