Object selection in "Project DWG Geometry" command

Object selection in "Project DWG Geometry" command

JanBaert
Participant Participant
237 Views
0 Replies
Message 1 of 1

Object selection in "Project DWG Geometry" command

JanBaert
Participant
Participant

I’m trying to automate a process to
1. import (link) a dwg file
2. Make certain dwg layers invisible
3. Create a new sketch
4. Project all visible dwg geometry
But I’m having a problem in step 4. I’ve code to project dwg geometry but this will project all geometry from the linked dwg, including the ones that are on invisible layers.
Is there a way to narrow down the selection of dwg geometry
Any idea how to select / project only the visible geometry from the dwg.

Or perhaps another method to make the correct selection?

I’ve attached a simplified ipt and dwg example containing the code.

 

Expected result:

Manual projection (OK)Manual projection (OK)

 

 

 

 

 

 

 

 

 

 

 

 

Result with actual code (the upper part may not be projected):

Automated projection (Not OK)Automated projection (Not OK)

0 Likes
238 Views
0 Replies
Replies (0)