Can not Create ViewPlan in a Family, Why?

xiaobin
Enthusiast
Enthusiast

Can not Create ViewPlan in a Family, Why?

xiaobin
Enthusiast
Enthusiast
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"
0 Likes
Reply
Accepted solutions (1)
369 Views
2 Replies
Replies (2)

naveen.kumar.t
Autodesk Support
Autodesk Support
Accepted solution

Revitalizer
Advisor
Advisor

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





0 Likes