- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Simply, I want to pass a profile from an existing profile family to FamilyCreate.NewSweep().
https://forums.autodesk.com/t5/revit-api-forum/load-profile-for-newsweep-command/td-p/5117864
Jeremy's comments from this post indicate to me that the profile family cannot be passed directly, but that the profile geometry needs to be recreated. Am I reading this correctly?
You can certainly retrieve a profile for a sweep operation from a family file.
However, the family file does not provide any provision for storing a profile per se, so you will have to make use of the other geometrical options available in that context to define some kind of geometry specifying the sweep profile.
You can then parse that geometry, extract the profile information, and put together the required curve array in your add-in.
As mentioned in some other Sweep posts, there are many samples that create a new profile, but none that accept a FamilySymbolProfile directly. Can this be done?
Thanks, Dale
______________
Yes, I'm Satoshi.
Solved! Go to Solution.