AutoCAD Electrical Forum
Welcome to Autodesk’s AutoCAD Electrical Forums. Share your knowledge, ask questions, and explore popular AutoCAD Electrical topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 10
sgsawdy
908 Views, 9 Replies

wd_dinrl

Hey Nate. Is there some way we can get the wd_dinrl api modified so it will add the attribute "LENGTH" and automatically enter the length of the rail or duct being created? Currently you are adding Rating1 and Rating2 but by adding the Length we could then include that in our BOM reports.

We are currently using ACADE 2008.

Thanks.
9 REPLIES 9
Message 2 of 10
sgsawdy
in reply to: sgsawdy

Anyone home?
Message 3 of 10
Anonymous
in reply to: sgsawdy

When the Din Rail is drawn in, AcadE adds the attributes from the block
wd_ptag_addattr_comp.dwg. This is where the RATING attributes come from. You
can add the LENGTH attribute to this block if you want. That means that the
LENGTH attribute will be added on any panel component though (excluding
panel terminals). No value would be added but when the Insert/Edit dialog
comes up you can select Show/Edit Miscellaneous and add a value. Not exactly
what you were looking for but works without any programming updates.

Pat Murnen


wrote in message news:5959606@discussion.autodesk.com...
Hey Nate. Is there some way we can get the wd_dinrl api modified so it will
add the attribute "LENGTH" and automatically enter the length of the rail or
duct being created? Currently you are adding Rating1 and Rating2 but by
adding the Length we could then include that in our BOM reports.

We are currently using ACADE 2008.

Thanks.
Message 4 of 10
sgsawdy
in reply to: sgsawdy

Thanks for getting back to me on this Pat. I wound up creating a lisp routine to add the attribute and the length once the din rail or wire duct is drawn. I will attach it in case it can be useful to anyone else.

How it works is after you are done drawing your din rail or wire duct you have to launch the lisp routine, pick the block you want to add the length attribute to and then pick the endpoint of the same block. This measures the distance from the startpoint to the endpoint you picked and places that value in the LENGTH attribute it adds to the block.

Is it possible to have this added to the wish list for future releases?

Scott
Message 5 of 10
Anonymous
in reply to: sgsawdy

I can log this. Basically you want a way to have the length of the dinrail
added to the block as it is built and then have it reported in the Bill of
Materials report. I am assuming that if you have multiple pieces of the same
catalog type din rail that you would want the report to add the lengths
together.

Remember, logging an item only means that it will be considered for a future
release.

Pat


wrote in message news:5974736@discussion.autodesk.com...
Thanks for getting back to me on this Pat. I wound up creating a lisp
routine to add the attribute and the length once the din rail or wire duct
is drawn. I will attach it in case it can be useful to anyone else.

How it works is after you are done drawing your din rail or wire duct you
have to launch the lisp routine, pick the block you want to add the length
attribute to and then pick the endpoint of the same block. This measures
the distance from the startpoint to the endpoint y
ou picked and places that value in the LENGTH attribute it adds to the
block.

Is it possible to have this added to the wish list for future releases?

Scott
Message 6 of 10
sgsawdy
in reply to: sgsawdy

That is exactly what we want Pat.

Isn't that why it is called a "wish list".

Scott
Message 7 of 10
alishaf
in reply to: sgsawdy

I ran the lisp file and it added the length attribute. Is there a way to get this info into the BOM quantity?

Message 8 of 10
priva2
in reply to: alishaf

I to am wondering if this has either been added in newer versions of AutoCAD or how to have the Bill Of Materials add them all up for a BOM or purchase list report.

Message 9 of 10
ccad2509
in reply to: sgsawdy

Something I did in plain autocad will work as a workaround

I did some work for a company that insisted the backplate layouts were in plain autocad

What I did was set up a data extraction

Which could find the block then extract all the data and then you can filter the information you want?

I.e.. Attributes /block data and geometry etc.

From this you can get a block x,y,z length and other useful information

This can be put into the drawing as a spreadsheet or exported out as data

This could be set up as a separate list of trucking and din rail used in a project

 

 

 

 

 

 

 

Message 10 of 10
priva2
in reply to: ccad2509

This does seem like a possible solution.  By default we have no length attribute defined.  I will need to work on a way to define that.  Soneone posted an lsp file to add lengths to din rail.  I may also try using regular autocad to see it can automatically get lengths. 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost