AutoCAD Electrical General

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

Drawing Properties

516 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?

 

*Expert Elite*
rhesusminus
Posts: 896
Registered: ‎09-21-2007
Message 2 of 14 (467 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?

 

 


THL
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 (462 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: 896
Registered: ‎09-21-2007
Message 4 of 14 (459 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?

THL
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 (452 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: 896
Registered: ‎09-21-2007
Message 6 of 14 (447 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.

 


THL
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 (442 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: 896
Registered: ‎09-21-2007
Message 8 of 14 (436 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.

 


THL
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 (427 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: 896
Registered: ‎09-21-2007
Message 10 of 14 (420 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

 


THL
Please select "Accept As Solution" if this post answers your question. Kudos don't hurt either. ;-)

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

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.

Ask the Community