
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am having issues with ViewPlan.Duplicate(ViewDuplicateOption.AsDependent) when i have the TransactionMode set to automatic in my ExternalCommand.
The problem is that some parameters are not inherited / duplicated correctly for the first duplicated viewtemplate. When i change the transactionmode to manual and do the transactions manually. Everything is duplicated as expected.
The parameters that are incorrect only in the FIRST duplicated view are:
- View Scale
- Scale value
And some others... which i dont seem to remember.
So what i do.
- Create a ViewPlan
- Apply a Tempalte to the created Viewplan
- In a loop Duplicate the ViewPlan, as param give: ViewDuplicateOption.AsDependent, duplicate it a N times.
- Check the first Dependent ViewPlan, and compare it to the ViewPlan we depend on, and compare it to the other Dependant ViewPlans.
- The first Dependend ViewPlan has incorrect parameters.
The fix for now is, set the TransactionMode to Manuall.
(additonal question: is there a Revit SDK / Api issue tracker?)
Solved! Go to Solution.