Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help from VB gurus

Status
Not open for further replies.

y2kmvr

Aerospace
Oct 17, 2004
14
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
 
Replies continue below

Recommended for you

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
 
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
 
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
 
Any help will be grealtely appreciated.

Thanks
y2kmvr
 
Any help will be grealtely appreciated.

Thanks in advance
y2kmvr
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor