C3D 2013 Win 7-64 bit
I have written a C# routine that inserts a block with some elevation data. It essentially mimics a VBA project written for LDT 2004. In LDT, the user would rotate the dwg using North Rotation. In C3D 2012 they now use Dviw twist. When the user selects a cogo point on screen the block appears to get placed at the position prior to the dview twist.
I'm not a cad user. Is there something they need to do after dview twist that will allow the block to insert at the correct place? Or, is there something I can do in code to get proper placement?
You will want to make sure the UCS is set to world and if it's not then rotate and move the object in relation to the UCS that is current. If you haven't found out how to do it so far, a search of the internet should point you in the correct location. I'm pretty sure Through the Interface blog has some examples.
Christopher
Chris,
Thanks for responding. It seems this is not a trivial task. After talking to the surveyors, they have decided to not go to "plan view". Then, when they are in a project that requires my routine and they see the UCS rotated, they know they have to twist back to 0 degress which is where they began.
Tom
First, I would abandon north rotation and dview twist. North rotation is probably the most dangerous action ever applied to Cad.
To accomplish your objective, i would use the world coordinate system and assign a rotation to the block being inserted to match the rotation of the views. Proper procedure is to create a user coordinate system (UCS) that has the x axis aligned with the X direction of your sheet, then the world coordinate system (WCS) is left untouched and you can always go back to it. Do not rotate drawing objects about the WCS, that screws everything up.... Leave everything in the appropriate place in the world coordinate system rotated as it exists in the real world based on the state plane system.... whatever one your using.
It isn't trivial at all and that is completely true. North rotation is super dangerous and undetectable in civil 3d, unlike ldt which showed you the north rotation.
Be very careful with this.
Throw dview twist out the window. You need to go old school. Use the PLAN command, and it should be smoother. Also, you might want to make sure UCSFOLLOW variable is set to zero.