Jump to content

Select all the objects


Elias

Recommended Posts

I need a code that can help me to select all the objects like ( Polyline, 3D polyline, line, Arc, Points etc...)  because I can't do anything when I run The VBA program.

Thanks

Edited by Elias
Link to comment
Share on other sites

Thanks Sir,

But I need the code for AutoCAD VBA Source (.dvb) program, for example I have code that can help me to export coordinates of the polyline but the problem which I faced I can't select specific object it export all in the same time.

 

 

 

2020-09-26_145900.jpg

Edited by Elias
Link to comment
Share on other sites

ADMIN needs to be moved to VBA section

 

"it export all in the same time"

 

You need to find some good tutorials about using VBA in Autocad. Look on KIndle or google "ebook". There are older VBA for Autocad books out there.

 

Compare these 2 lines a selection set or a single entity

make a slection set of blocks
FilterDXFCode(0) = 0
FilterDXFVal(0) = "INSERT"
Set SS = ThisDrawing.SelectionSets.Add("pit2sel")
SS.Select acSelectionSetAll, , , FilterDXFCode, FilterDXFVal

get a single entity
ThisDrawing.Utility.GetEntity Ent1, basepnt, "pick object : "

 

image.thumb.png.f35fb36bfb38f4e449cd1194efc7c706.png

Edited by BIGAL
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...