« Yet Another Modeless Update | Main | Analytical Model IsEnabled Method and Parameter »

September 22, 2011

Comments

Nice and simple! Is there away to assign a view template to the current view?

Dear Brett,

Yes, it is, isn't it? Thank you for your appreciation!

And for assigning a view template to the current view, have you had a look at the View.ApplyTemplate method?

Cheers, Jeremy.

cool i'll check it out thanks!

Dear Jeremy
I have a question about pickpoint() function,In 3DView,when I select "Front" or "Back" or "Left" or "Right" view,the pickpoint() will not return a point,because it can't not pick a point on curent Workplane,is there any ideas to solve this problem?
Thanks.
Guming.

Dear Jeremy
I have already solved the problem with the method which creating another workplane to replace the old one,if you have good suggestion,please tell me.
many thanks.
Guming.

Dear Guming,

Congratulations on solving, it, sounds good to me!

Cheers, Jeremy.

Hi Jeremy,
A quick question (just out of curiosity) regarding not wrapping the doc.ActiveView assignment. Technically by reassigning the active view one actually alters the database?
Thanks,
Dima

Dear Dima,

I have no idea what the reasoning behind this is, all I can do is speculate. Possibly setting the active view is such a precarious operation or somehow involves some mixture of internal user interface and database operations that Revit prefers to have full control over wrapping it into a transaction (or not) itself. Your guess is as good as mine.

Cheers, Jeremy.

hi Jeremy, change View Template through API is currently unavailable, right? thanks and have a great weekends! Ning

Dear Ning,

I am not sure you are right. Doesn't the View.ApplyTemplate method fulfill your need?

Cheers, Jeremy.

Hi Jeremy,
How would you Activate a 3D View while you are in IExternalApplication?

Thanks,

--Chi

Dear Chi,

If you mean 'in the OnStartup event handler' when you say 'while you are in IExternalApplication', then I would answer 'not possible'.

Cheers, Jeremy.


TypePad HTML Email


Hi Jeremy,

Thanks for your help.

Best,

Hi,

Followed your code and got "Setting active view is temporarily disabled". Any ideas?

Thanks.

Dear Liz,

Yes, sure. The system may be busy with something else. :-)

Cheers, Jeremy.

I have been waiting for View3d to provide one information that is missing ever since born.

It is the orthographic scale, or perspective angle (both can be replaced by an image plane size).

Without this, I cannot correctly draw my own points that satisfies the view (level of detail depends on the current view camera parameters).

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Your Information

(Name and email address are required. Email address will not be displayed with the comment.)

Jeremy Tammik

AboutTopicsIndexSource