How can i see if a block is standing in Paperspace or Modelspace

How can i see if a block is standing in Paperspace or Modelspace

Anonymous
Not applicable
217 Views
2 Replies
Message 1 of 3

How can i see if a block is standing in Paperspace or Modelspace

Anonymous
Not applicable
I'm making a program that inserts a block on a position that is related to another block.

My problem is that i can find the block, but i cannot see if it's standing in Paperspace or Modelspace.

I made a selectionset that contains that blockreference

Set ss = ThisDrawing.SelectionSets.Add("Searchblock")
fType(0) = 2
fData(0) = StrblokNL ' blockname
ss.Select acSelectionSetAll, , , fType, fData

For Each blkRef In ss
<>
Next
0 Likes
218 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
With DXF groupcode 67, you can select your block in papersapce or modelspace

Bernard
0 Likes
Message 3 of 3

Anonymous
Not applicable
Use the .Parent property and compare the block's
parent's objectid to ModelSpace's Objectid.

 

Regards,

Donald F. Sanborn

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
I'm
making a program that inserts a block on a position that is related to another
block.

My problem is that i can find the block, but i cannot see if it's standing
in Paperspace or Modelspace.

I made a selectionset that contains that blockreference

Set ss = ThisDrawing.SelectionSets.Add("Searchblock")
 fType(0) =
2
 fData(0) = StrblokNL ' blockname
 ss.Select
acSelectionSetAll, , , fType, fData

For Each blkRef In ss
    <<what must is put
here to get it to work>>
 Next

0 Likes