kunekainen Posted December 30, 2014 Share Posted December 30, 2014 (edited) Hi there. Is it possible to change base point of a block reference in .net? It always assumes (0.0.0) location for a newly defined block. This is what i want to change: Thanks in advance. Edited December 30, 2014 by kunekainen Quote Link to comment Share on other sites More sharing options...
kunekainen Posted December 30, 2014 Author Share Posted December 30, 2014 I thought the "position" property is what i was looking for but i was wrong. I'm still looking for a solution. Quote Link to comment Share on other sites More sharing options...
BlackBox Posted December 30, 2014 Share Posted December 30, 2014 I thought the "position" property is what i was looking for but i was wrong. I'm still looking for a solution. Then why is this thread marked as '(solved)'...? What API are you using, VBA or .NET? Cheers Quote Link to comment Share on other sites More sharing options...
kunekainen Posted December 31, 2014 Author Share Posted December 31, 2014 Sorry man i renamed it when i thought i find the solution and i couldn't rename it again. I'm using .net api. Quote Link to comment Share on other sites More sharing options...
SEANT Posted December 31, 2014 Share Posted December 31, 2014 The “Pick Insertion Base Point” of the Block Definition dialog orients the selected objects relative to the BlockTableRecord.Origin property. Based on this "note" in ObjectARX documentation (see attached image) it may make more sense to move the geometry within the definition to recreate a new overall orientation. Quote Link to comment Share on other sites More sharing options...
BlackBox Posted December 31, 2014 Share Posted December 31, 2014 Sorry man i renamed it when i thought i find the solution and i couldn't rename it again. I'm using .net api. No worries; thanks for clarifying. The “Pick Insertion Base Point” of the Block Definition dialog orients the selected objects relative to the BlockTableRecord.Origin property. Based on this "note" in ObjectARX documentation (see attached image) it may make more sense to move the geometry within the definition to recreate a new overall orientation. You may also find Bill's ChangeInsertPoint() Method over at TheSwamp to be of interest... Could easily be ported to an Extension Method as well. Cheers Quote Link to comment Share on other sites More sharing options...
kunekainen Posted December 31, 2014 Author Share Posted December 31, 2014 I really don't know how to thank you guys. BlockTableRecord.Origin did the job well. I am an ordinary engineer who wants to simplify his jobs a little bit but I often stuck with .net cause I don't have a solid programming background. I usually try to solve my problems on my own but sometimes it becomes impossible. At this point you guys are my saviors Thanks again, have a nice year. Quote Link to comment Share on other sites More sharing options...
BlackBox Posted December 31, 2014 Share Posted December 31, 2014 I really don't know how to thank you guys. BlockTableRecord.Origin did the job well. I am an ordinary engineer who wants to simplify his jobs a little bit but I often stuck with .net cause I don't have a solid programming background. I usually try to solve my problems on my own but sometimes it becomes impossible. At this point you guys are my saviors Thanks again, have a nice year. You're welcome, kunekainen; we're happy to help. I am neither an engineer (ordinary or otherwise), nor one with a solid programming background, so methinks you'll do just fine... Just as we all start somewhere, we all have something to learn from others. Happy New Year! Cheers Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.