- Oh no! An error has occurred!
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
-
Coinciding with the acquisition of VIA Development, Nate joined Autodesk in March of 2003 after a decade stint as an entrepreneur following a two-decade stint as a controls engineer and software applications developer at Owens-Corning. Nate is now the lead product architect for AutoCAD Electrical. He loves this stuff.
-
Linking AutoCAD Custom Drawing Props back to AcadE Proj Mgr
February 2, 2007, 05:56 PM Nate HoltThis one was a head-scratcher. A reseller wanted to know if it was possible to push values set in AutoCAD "Custom drawing properties" back into AutoCAD Electrical's project manager. Right now, the AcadE project manager will populate the AutoCAD custom drawing properties but not vice versa.
The current state - Limited to just one-way update
Here's the current state. In AutoCAD Electrical's project manager I right-click on a drawing entry and select the drawing properties options...

... and up pops the normal AutoCAD Electrical Drawing Properties dialog (for the active drawing). Changes I then make here get written back to the active drawing's settings block (the invisible WD_M block insert) or to the project definition file (the.wdp file).

But this action also triggers the AcadE Project Manager to push a copy of these values out to the AutoCAD custom drawing properties.
If I then launch the "Drawing Properties" from the generic AutoCAD "Files" pull-down menu, I can see that these values are now present and displayed in the drawing's custom properties (shown below).

How can we push values back the other way?
Thanks to Autodesk's Mike Sptizer for pointing out an AutoLISP approach. This uses a handful of "vla" calls from the Visual Lisp extensions to AutoLisp. The key part of the utility's code is shown here:

You can download a full copy here. Appload it and give it a shot. Edit some values in the AutoCAD "Drawing Properties" dialog, then test by typing dwg_props_2_acade [Enter] and see if the AcadE-specific ones get pushed back into the AcadE drawing manager and the WD_M block on the active drawing.
Don't hesitate to customize this example utility to meet your specific needs!
You must be logged in to post a comment.