×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Need help from VB gurus

Need help from VB gurus

Need help from VB gurus

(OP)
Hi,
I would like to search 3D entities  and 2D entities in .DWG file.Can someone help me with the logic/syntax/code. I am new to AutoCAD

Thanks in advance
y2kmvr

RE: Need help from VB gurus

(OP)
Hi,
I am trying to read .DWG file through VB, scan all the  2D and 3D. Looking for some sample code that works for both Model Space and Paper Space. Thanks in advance.

y2kmvr

RE: Need help from VB gurus

You can go about a few ways. To search everything, you can look through the Block collection. It includes, ModelSpace, PaperSpace, and BlockTables. If you are looking for certain "types" of entities, you can use the AcadSelectionSet to narrow your search based on entity parameters, and then search through those "found" entities.

"Everybody is ignorant, only on different subjects." — Will Rogers

RE: Need help from VB gurus

(OP)
Here is what I am trying to do:
I have .DWG (from mechanical desktop)files that have both 3D & 2D entities in them. not able to export(step or iges) the complete data out of Mechanical desktop. If I use step, I am losing 2d drawing data. If I use IGES, i am losing 3d data.

I would like to: (through VB )
scan all the .DWG files. If 3D entities are found, export them into STEP. If 2D entities( pure 2d drawing )are found, export them into IGES 2D.

If someone has some sample code for searching entities both in ModelSpace and PaperSpace, please post it here.

If you have some other ideas, please share with me.
Thanks in advance.
y2kmvr

RE: Need help from VB gurus

(OP)
Any help will be grealtely appreciated.

Thanks
y2kmvr

RE: Need help from VB gurus

(OP)
Any help will be grealtely appreciated.

Thanks in advance
y2kmvr

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources