Jump to content
Elias

Select all the objects

Recommended Posts

Elias

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

Share this post


Link to post
Share on other sites
sanju2323

Please find the attachment file

TEST.xlsm

Share this post


Link to post
Share on other sites
Elias

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

Share this post


Link to post
Share on other sites
Tharwat

Why do you want to select these types of objects?

Share this post


Link to post
Share on other sites
BIGAL

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

Share this post


Link to post
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
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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...