AutoCAD Electrical General Discussion

AutoCAD Electrical General Discussion

Reply
Active Contributor
kani_mca
Posts: 43
Registered: ‎02-07-2013
Message 1 of 14 (524 Views)
Accepted Solution

Drawing Properties

524 Views, 13 Replies
02-25-2013 01:24 AM

Can we Get Sheet number of Particular Drawing using VB.net?

Can we access Autocad's Particular button Event?

Please Reply if you know?

 

You have exploded the WD_M block. Hence, the attribute values are gone.

Do NOT explode the WD_M block.

Set ATTDISP to ON to see the WD_M block. Now you should see the sheet number in the SHEET attribute (when you double-click the WD_M block)

Set ATTDISP to NORMAL when you're done.

 

In the WDP-file you willl only find the following information about a drawing:

  • Filename
  • Drawing Description 1
  • Drawing Description 2
  • Drawing Description 3
  • subfolder-location

The rest of the information you'll have to get fra the WD_M-block inside the drawings.

 

*Expert Elite*
rhesusminus
Posts: 918
Registered: ‎09-21-2007
Message 2 of 14 (475 Views)

Re: Drawing Properties

02-26-2013 10:47 PM in reply to: kani_mca

Yes, you can get the sheet number from the drawing.

It's stored, IN the drawing, in the WD_M block reference. Look for the SHEET-attribute.

 

What button do you want to check for an event on?

 

 


Trond Hasse Lie
ECAD Consultant
CtrlAltEl

Please select "Accept As Solution" if this post answers your question. Kudos don't hurt either. ;-)
Active Contributor
kani_mca
Posts: 43
Registered: ‎02-07-2013
Message 3 of 14 (470 Views)

Re: Drawing Properties

02-26-2013 11:31 PM in reply to: rhesusminus

i saw that sheet attribute value,but no value in that..

If i Go to drawing properties,I can see the sheet number..

But in WD_M Block the sheet number will be empty..

 

How should i get sheet number of Particular drawing?

 

 

*Expert Elite*
rhesusminus
Posts: 918
Registered: ‎09-21-2007
Message 4 of 14 (467 Views)

Re: Drawing Properties

02-26-2013 11:34 PM in reply to: kani_mca
Can you post a screen-shot of the Drawing Properties dialog, and the SHEET attribute of the WD_M-block?

Trond Hasse Lie
ECAD Consultant
CtrlAltEl

Please select "Accept As Solution" if this post answers your question. Kudos don't hurt either. ;-)
Active Contributor
kani_mca
Posts: 43
Registered: ‎02-07-2013
Message 5 of 14 (460 Views)

Re: Drawing Properties

02-27-2013 12:35 AM in reply to: rhesusminus

Please Find Attached Image File,I attached Drawing Properties and WD_M Block..

 

*Expert Elite*
rhesusminus
Posts: 918
Registered: ‎09-21-2007
Message 6 of 14 (455 Views)

Re: Drawing Properties

02-27-2013 12:39 AM in reply to: kani_mca

You have exploded the WD_M block. Hence, the attribute values are gone.

Do NOT explode the WD_M block.

Set ATTDISP to ON to see the WD_M block. Now you should see the sheet number in the SHEET attribute (when you double-click the WD_M block)

Set ATTDISP to NORMAL when you're done.

 


Trond Hasse Lie
ECAD Consultant
CtrlAltEl

Please select "Accept As Solution" if this post answers your question. Kudos don't hurt either. ;-)
Active Contributor
kani_mca
Posts: 43
Registered: ‎02-07-2013
Message 7 of 14 (450 Views)

Re: Drawing Properties

02-27-2013 12:57 AM in reply to: rhesusminus

Yes I got it sir...

 

When creating or changing the sheet in AutoCAD Electrical, the Drawing name must also be changed..

Can we do that using vb.net?

*Expert Elite*
rhesusminus
Posts: 918
Registered: ‎09-21-2007
Message 8 of 14 (444 Views)

Re: Drawing Properties

02-27-2013 01:12 AM in reply to: kani_mca

You can give the DWGs whatever filename you want. Just remember to update the WDP-file with the new filename.

Open the WDP file with notepad to have a look at what it should look like.

 


Trond Hasse Lie
ECAD Consultant
CtrlAltEl

Please select "Accept As Solution" if this post answers your question. Kudos don't hurt either. ;-)
Active Contributor
kani_mca
Posts: 43
Registered: ‎02-07-2013
Message 9 of 14 (435 Views)

Re: Drawing Properties

02-27-2013 01:51 AM in reply to: rhesusminus

I opened WDP file with notepad,I saw some values,

 

How Can i access that file through vb.net code?

*Expert Elite*
rhesusminus
Posts: 918
Registered: ‎09-21-2007
Message 10 of 14 (428 Views)

Re: Drawing Properties

02-27-2013 02:04 AM in reply to: kani_mca

My answer here must be "just google it". There are so many ways to open a text-file and read data from it in .NET

 


Trond Hasse Lie
ECAD Consultant
CtrlAltEl

Please select "Accept As Solution" if this post answers your question. Kudos don't hurt either. ;-)
Announcements
Manufacturing Community
The Manufacturing Community provides additional access to tips, tutorials, blogs and networking with peers.
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.