Jump to content

VBA: select block with with the insert point coördinates


pjotrki

Recommended Posts

Hello,

 

I want to select a block inside VBA.

I know the x-y-z coördinates of the insertion point of the block.

I also know the block name.

I can select all the blocks with that name in the drawing.

Then iterate through the selectionset containing all the blocks with that name and check the insertionpoint-coördinates for a match.

When there are very much blocks this is a consuming task.

Is there a better way?

Something like selecting wathever is on the x-y-z coördinate, the same thing you do in the drawing editor when you select 1 item by clicking on the screen with the mouse.

 

Thank You Very much,

 

Peter Van der Velden

Edited by pjotrki
Typo's
Link to comment
Share on other sites

Hello SEANT,

 

Thank You for the quick reply, I will try this out and see if this solves my problem.

 

See You

 

Peter

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