Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can not Create ViewPlan in a Family, Why?

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
xiaobin
369 Views, 2 Replies

Can not Create ViewPlan in a Family, Why?

I need to create a plan view in a metric regular family. My program runs normally in the project document, but when run in the family document, the create view function reports an exception in the parameters. ViewPlan^ vPlane = ViewPlan::Create(doc, VPTypeId, Level0Id); "ArgumentException: Plan view creation is not allowed in this family. Parameter name: document"
2 REPLIES 2
Message 2 of 3
naveen.kumar.t
in reply to: xiaobin

Message 3 of 3
Revitalizer
in reply to: xiaobin

Hi,

 

is it a detail family?

This sort of families usually has only one viewplan,

there can be only one.

So the exception is self-explanatory.

 

Revitalizer




Rudolf Honke
Software Developer
Mensch und Maschine





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

Post to forums  

Autodesk Design & Make Report