.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Query block origin

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
mtrd_001
324 Views, 2 Replies

Query block origin

Hello, just wondering how you query a block's insertion point (or origin, whatever the terminology is).

 

Thanks

2 REPLIES 2
Message 2 of 3
mtrd_001
in reply to: mtrd_001

I probably should clarify what i am trying to do. I am trying to write a vb.net app that gets a list of handles and finds each block's insertion point.
Any tips or code samples?
Thanks
Message 3 of 3
Anonymous
in reply to: mtrd_001

Hi,

 

You can get block insertion point as shown below:

 

            ent = acTrans.GetObject(objId, OpenMode.ForRead)
            If TypeOf ent Is BlockReference Then
                blkEnt = DirectCast(ent, BlockReference)
                orgPt = blkEnt.Position
            End If

 Regards,

gsktry

 

 

 

 

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost