Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

mhadi

Building an AutoCAD Solution !!!

This topic is 5279 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello I want to develop a solution for an electrical consultation company which requires to give an input of multi-layered AutoCAD r14 file (.dwg). The electrical drawing is placed at one or more layer. there are some curves representing the conductors(power lines or data cables) and conduit (concealed and of different diameters). A specification is written with a curved line (representing conductor and conduit) to define the no. of conductor and conduit in it. The company wants to determine the length of all conductors and conduits (to estimate the cost) I need to 1. Read the AutoCAD file to my application 2. Extract the electrical layer(s) 3. Determine the curved line objects identify them (as conductor and conduit) 4. Determine the length of curved layer 5. Determine the no. of conductors and conduits by the given specification. 6. Find total cost How do I proceed? How read the .dwg file? How to determine the length of curves? How to get the text of specification from .dwg files What can be other problematic issues? Can any one help me out? Waiting for some serious help mhadi [EDIT]: Change Condude to Conduit and some formatting [edited by - mhadi on March 4, 2004 9:07:20 PM]

Share this post


Link to post
Share on other sites
Advertisement
Is there any chance you mean "conduit", not "condude"?

1. Go to www.wotsit.org and look up the DWG format.
2. Look up some math for determining curve length.
3. Again, look up the format.
4. Make sure you extract only the conductor and conduit markings, and not any other shapes in the layer.

Share this post


Link to post
Share on other sites
"How do I proceed?"

AutoCAD files are text. Load a sample into Notepad to verify this.

"How read the .dwg file?"

Parse it for the elements you require.

"How to determine the length of curves?"

This will depend upon the types used (circular, paraboloid, freehand...) and their extent.

A rough approximation will be to use joined short straight lines between the points and determine the curve length that way. There are any number of alternatives if you want a better approximation. A good math book, or Google search, will offer many techniques.

"How to get the text of specification from .dwg files"

Wotsit has bee mentioned, and you may like to search for downloadable DWG files for example from

http://xoomer.virgilio.it/lwcon/

not English, but the files are standard format, I think. Learn to parse them for the relevant elements.

"What can be other problamatic issues?"

Costing may be the difficult bit. Suggest you link to a spreadsheet or use a similar component in your application.

Also, as I remember, it is possible to define a user library in AutoCAD, not all of which will be present in a single drawing. Therefore, get a copy of this library, if it exists, before you start working on your application.

"Can any one help me out?"

Hope I''ve offered some pointers.





Stevie

Don''t follow me, I''m lost.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Go to OpenDWG.org for the specs.

Next time don''t bid on a job you don''t know how to do. You''ll alway underbid it.

Share this post


Link to post
Share on other sites
I can''t agree more with the AP. It''s really dumb to bid on something you know nothing about, and apparently don''t even have the ability to find out about. Anyway, remember, google is your friend.

BTW, it''s conduit, not condued (yes it was mentioned, but it needs reinforcement).

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!