Form.ByloftCrossSection problem

Form.ByloftCrossSection problem

Anonymous
Not applicable
1,289 Views
2 Replies
Message 1 of 3

Form.ByloftCrossSection problem

Anonymous
Not applicable

Hello,

 

I had to automatise an insertion of 3D curve and sweep a family along it. I have many Excel files with the coordinates X,Y and Z of my curve. No problem to read that with dynamo.

 

I've got a problem with the Form.ByLoftCrossSection node. It works only in the family edition space.

But I would like to repeat this code (while loop), and it necessitates to quit the family edition space, insert family, and open the family space to repeat the code.

Is it possible with Dynamo? Or with the API ? Anyone can help me?

 

Or if you know another function which works in the project space...

this is my code and the result in Revit :

LoftByCrossSection.JPG

Thank you in advance for your help

0 Likes
Accepted solutions (1)
1,290 Views
2 Replies
Replies (2)
Message 2 of 3

jeremytammik
Autodesk
Autodesk
Accepted solution

Hello.

 

No, sorry, the form creation methods can only be used in the family definition context, not in a project context.

 

In the project, you can only insert instances of the family containing the forms you created.

 

The most important alternative enabling shape creation directly in the project is provided by the DirectShape element:

 

https://thebuildingcoder.typepad.com/blog/about-the-author.html#5.50

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 3 of 3

Anonymous
Not applicable

Thank you for your answer, I succeed with a DirectShape element !

0 Likes