AutoCAD Electrical General Discussion

AutoCAD Electrical General Discussion

Reply
Distinguished Contributor
acade2012
Posts: 116
Registered: ‎04-24-2012
Message 1 of 2 (104 Views)

lsp routine and sheet values

104 Views, 1 Replies
11-30-2012 12:24 PM

Hello All,

I run a LSP routine to create a drawing package. It sets up layout, Pneumatic, high voltage, low voltage and panel layout drawings.

 

It pulls them from a template project.

 

If you right click on a drawing, then properties, then drawing properties, under sheet values is sheet.

 

When I import the drawings that sheet value doesn't change.

 

How can I get that value to reflect the correct value?

 

I have been able to get the drawing numbers to be correct and need the sheet value to reflect that same value

 

I.E.. I import drawing 12345_MCP_001

 

I need the sheet value to also change to the 001

 

Any thoughts would be greatly appreciated

 

thank

 

Dennis

Employee
murnenp
Posts: 648
Registered: ‎08-01-2007
Message 2 of 2 (85 Views)

Re: lsp routine and sheet values

12-03-2012 05:23 AM in reply to: acade2012

Dennis,

 

The SHEET value for a drawing is held on a SHEET attribute on a block called WD_M. This block should be on every AcadE drawing. If it isn't there you can use the API (c:ace_GBL_wd_m 1) to insert it. Then use standard lisp commands to get the entity name for it and then you could use the API (c:wd_modattrval ben "SHEET" "001" 1) where "001" is the sheet value.



Pat Murnen
Principal Content Developer
Information Modeling and Platform Products Group

Autodesk, Inc.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions to get help installing your software.

New AutoCAD Electrical Category!

The AutoCAD Electrical forum has moved into it's very own category page, and can no longer be found within the Additional Product Forums.

Announcements
Manufacturing Community
The Manufacturing Community provides additional access to tips, tutorials, blogs and networking with peers.