Jump to content

Recommended Posts

Posted

Hi,

 

i have a problem and i can`t find a solution. I'm working with a file of an office and i have to make some modifications on it. The office has different layers as for exmaple (walls, furniture...) and i don't know how to work with them.

 

More precisely, I need to picture some rays and evaluate the points of intersections with these layers. Also i can't obtain the coordenates of the vertices of the office or of any object that is inside this layers. I really need some help please.

 

Thanks a lot,

Cesar

Posted

I’m having a bit of trouble picturing the setup: Is there a sample file available that would help with the “problem definition”?

Posted

Hi,

 

The key of the project is to be able to interact with the entities of the layers.

 

In the file attached there is a simple office to explain you what i want to do. I'm going to work in 3D but for this problem is not necessarily. The vba project ask the user to place a circle in it which would be our origin point. Then it comes the problem, because i start doing rays from this origin in every angle and i have to know the points of intersection with the layer of the wall. I don't know how to work with the objects of a layer.

 

Also as i have post previously i can't obtain the coordenates of the vertices of the office with commands.

 

Thanks SEANT

office_sample.dwg

Posted

The way I would approach this problem would be to create a selection set with all the geometry on the target layer. See the information in this thread about filtered selection sets.

 

http://www.cadtutor.net/forum/showthread.php?t=38124

http://www.cadtutor.net/forum/showthread.php?t=28949

 

An iteration of that selection set could be set to query the Start/Endpoints of all the lines within the set to get the coordinates and/or used with the ray to call the IntersectWith method.

 

You will likely find VBA somewhat lacking in the necessary tools, though, when you switch to 3D. You may be better off exploring the new VB.NET options.

Posted

Thanks SEANT!!!!

 

I start now with your advice. I expect it works!

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