Author Topic: Autocad Script File to Write Object Data  (Read 262 times)

0 Members and 1 Guest are viewing this topic.

lmorse

  • Mosquito
  • Posts: 1
Autocad Script File to Write Object Data
« on: November 26, 2020, 01:37:34 PM »
Hi,

I have a database containing object information. I am able to write out a script from my database that inserts blocks into Autocad C3D. Here is an example of the script file:

Code: [Select]
osmode
0
-layer
Set
"2020_DESIGN"



ATTREQ 1
ATTDIA 0
-insert
"DESIGN"
607476.547,7574318.945,0 1 1 0
GAS
GR04L001
10354
Is there a way that I can also insert Object Data (into a data table) using this script when creating the block?

The structure of the data table that I would like to populate is:

OD:SERVICES
ASSET_TYPE
DATE_SURVEYED
SURVEYOR
SURVEY_COMPANY
MINE_NAME
PROJECTION_NAME_ZONE
HEIGHT_DATUM
PIPE_DIAMETER_VOLTAGE
RTK_PROFILE
BOREHOLE_TYPE
DEPARTMENT
GROUTING_STATUS


Thanks in advance