AutoCAD Civil 3D Customization

Reply
Valued Contributor
tommcgtx
Posts: 66
Registered: ‎01-22-2010
Message 1 of 5 (1,713 Views)

Dynamic North Arrow

1713 Views, 4 Replies
12-02-2011 03:00 PM

I have a dynamic block North arrow that has a field that updates the scale according to the viewport scale, and has parameters set to rotate the top portion of the arrow block. Is there a way to set the angle automatically so that it points North according to model space? I only want the top portion, which is a cirle with a triangle, to ratate, leaving the text prtion and underlines untouched.  I have attached my block for anyone interested in helping me tackle this one.

Valued Mentor
gjrcmb
Posts: 322
Registered: ‎06-21-2011
Message 2 of 5 (1,702 Views)

Re: Dynamic North Arrow

12-03-2011 12:22 AM in reply to: tommcgtx

Kind of intriguing.  I actually thought of trying what you are looking for a few weeks ago, but did not pursue it at that time.  However, since you brought it up, I decided to revisit the topic.

So far I have gone down a variety of paths trying to figure out whether what you are asking is possible or not.  So let me share with you my attempts, findings, and/or thoughts so far:

  1. I thought that it might be possible to tie the rotation of the North Arrow to a Fix Constraint, but I cannot find a way to tie the Fix Constraint to Model Space instead of Paperspace where the block would reside.
  2. I thought maybe there is some way to tie into a Field entry of some type.  So I tried creating a Field that refers to the system variable "ViewTwist" in the hopes of utilizing the angle somehow in the Dynamic Block.  However in this instance, the Field only displays the twisted angle of Model Space when viewing model space through the viewport, so that didn't seem to lead anywhere as I need to extract the Model Space angle while in Paperspace.
  3. Third, in my search for possible solutions I came across a nice AutoLISP routine to rotate blocks to coincide with the VIEWTWIST orientation.  See Rotate Block to Match Viewport.   While this does not accomplish what you want, it is a possible alternative.
  4. Fourth, I returned back to trying to use a Field somehow and venturing into Diesel Expressions (a first for me).  I actually ended up getting to the same point I did with my Second point above, where I could extract the ViewTwist angle I wanted only while in Model Space.

So here are my remaining thoughts.  I think it might be possible to do what you want, but it might require some programming.  It might be worth searching the Visual LISP, AutoLISP and General Customization forum to see if somebody has done somthing like what you want.  Otherwise, I might dig into it a bit more.  I'll let you know if I discover something else.

Valued Contributor
tommcgtx
Posts: 66
Registered: ‎01-22-2010
Message 3 of 5 (1,664 Views)

Re: Dynamic North Arrow

12-06-2011 10:44 AM in reply to: gjrcmb

I was looking at this website:

 

http://mdouglas.blogs.com/in_the_dynamic_interface/2005/07/dynamic_lisp_co.html

 

I don't know if I could use this or not, as I don't know very much about programming. I just thought it might be relevant to the topic.

Valued Mentor
gjrcmb
Posts: 322
Registered: ‎06-21-2011
Message 4 of 5 (1,650 Views)

Re: Dynamic North Arrow

12-06-2011 09:38 PM in reply to: tommcgtx

I am unable to find a way to dynamically tie the rotation of North Arrow to the orientation of Model Space relative to the Viewport by assigning a parameter and action to the dynamic block.  So I think I'll stick with using the previously mentioned lisp routine as the next best alternative.

Active Contributor
MMorrison
Posts: 33
Registered: ‎01-23-2007
Message 5 of 5 (1,564 Views)

Re: Dynamic North Arrow

12-20-2011 10:31 AM in reply to: gjrcmb

Why don't you submit a support request for the feature?

 

Martin

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Civil 3D Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for AutoCAD Civil 3D helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Civil 3D

Twitter

Facebook

Blogs