SETVAR only lists acad variables.
How do I find a list of ldd variables?
|
SETVAR only lists acad variables.
How do I find a list of ldd variables?
You can set LDD parameters under Projects-->Edit Drawing SettingsOriginally Posted by scomer
I want to use these variables for information extraction.
For ex. what is the variable for project name?
You can set a project name in the system variables. Type projectname on the command line. What are you trying to do? What do you want your final outcome to look like?
That's a bit easier, and at the same time a bit trickier. LDD is really Softdesk Civil, and was written as a 3rd party app to run on top of AutoCAD. this was all prior to Autodesk doing 'vertical apps'. So the Softdesk devs did not have access to the core code and couldn't create setvars or modify the original CAD application, they had to run on top of it.
Even though Adesk has long since acquired the software, they've not worked to integrate it with Acad and are pushing Civil3D instead.
The LDD information can be extracted however if you know the secret. It's stored in the drawing as invisible attributes to the invisible ADCAD_ZZ block, normally inserted at 0,0,0 in the first layout tab. There are no objects in that block, just invisible attributes and the block is set to invisible,so it's not normally selectable. Programatically you'll need to find the block, and list out the attributes to the instance.
Once you get the project name from the ADCADD_ZZ block you will find project specific settings in three files located at the root folder of the LDT project: project.dfm, cd.dfm and cgx.dfm file.
I think the problem will be identifying the project path since it is stored in the project.dfm.
System specific settings are located at C:\ Documents and Settings<user name>Local SettingsApplication DataAutodeskAutoCAD Civil 3D Land Desktop Companion 2008R17.1enuSupportsdsk.dfm. Note: you will need to substitute your version for 2008 and 17.1.
Drawing specific settings are located at <project path>/dwg/<drawing name>.dfm and <project path>/dwg/<drawing name>.cgx and <project path>/dwg/<drawing name>.cd. All drawings that have been attached to the project will have a .dfm. Not all drawings will have a .cd or .cgx file.
Edit: Stupid smiley faces. It changed my path to a smiley face.
Last edited by jpaulsen; 2007-07-26 at 03:25 PM.
Thank you regarding the acad_zz, but I don't know how to extract information out of it?
How do you extract this information?
In the upper left hand corner of the screen the project is displayed. What I am trying to do is read that variable and display it in text.
I appreciate your patience.
The value is just an attribute in a block. You would extract it like any other attribute. Not sure how to do it with programming but at the command prompt you type attext. Use -attext (with the hyphen) to get the command line driven command.