Jump to content

Basic


versiona

Recommended Posts

Hi,

 

I would like to know some basic things about AutoCAD. I have to create some function in vba but I don't have a sufficient knowledge to begin.

 

My question is:

 

What is an entity?

What is a ModelPlace?

What is a Selection Set?

Do you have a "hierachic" between object:

 

ModelSpace is in an entity ?

What is in what

 

(((polilyne is in acadobject) is in Entity) is in ModelSpace) is in a Layer

 

??

 

Some help would be appreciated.

 

Thks

 

Versiona

Link to comment
Share on other sites

An entity is an object.

Lines, circles and polylines are entities.

ModelSpace is the main block in a AcadDocument (drawing).

That block contains all objects you see in modelspace.

Other blocks are the PaperSpace block and alle the user defined blocks like for example a door and a title blocks. All blocks, or block definitions to be correct, are collections of entities. A block reference is also an an entity, in MS or PS.

You can for example do like this:

Set MS = Actovdocument.ModelsPace

For each Obj in MS

Do something

...

 

Look in Help and find the ObjectModel, like this:

vba_096s.jpg

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