Direct Shapes Cut Patterns are Solid Grey

Direct Shapes Cut Patterns are Solid Grey

jnoordzij
Advocate Advocate
1,748 Views
3 Replies
Message 1 of 4

Direct Shapes Cut Patterns are Solid Grey

jnoordzij
Advocate
Advocate

I have created a bunch of DirectShapes in Revit using Dynamo (around 1000 shapes). 

I have applied some materials to them, also using Dynamo.

From the outside, the surface-patterns look good, they show the right materials. 

 

However if I cut the DirectShapes with sections, then then the cut-patterns appear as solid grey.

Is there a way to get the cut-patterns shaded the same as the surface-pattern? Can this be done with DirectShapes?

0 Likes
1,749 Views
3 Replies
Replies (3)
Message 2 of 4

Daniel_ADSK
Alumni
Alumni

Dear Jnoordzij, 

 

Thank you for contacting Autodesk support. I understand that the problem is materials are not showing up on cut-sections of a dynamo created shape. 

 

I will answer this question to the best of my dynamo knowledge. According to this article: 

DirectShape.ByGeometry, DirectShape.Transform – Dynamo Nodes unfortunately you can not assign material properties to DS objects due the current restrictions in the Revit API. 

 

But as a workaround, I suggest you to cut the shape first and then apply the materials to the geometry. Maybe you can try this and let us know if you have any questions. 

 

Regards, 

Daniel 

Daniel Dong
AEC Product Support Specialist
WWFO-Customer Success Organization
0 Likes
Message 3 of 4

Corsten.Au
Advisor
Advisor

Hello

 

What's the Category of the Shapes when you get that into revit..

 

Assuming its " Generic Model " then check-in 

1. Object Style

2. Generic Model

 ( Material

 

( if its some other category, then check-in that category default material in " Object style "

assign required material and it should work.

 

If you are looking for custom material, then you need an " Instance Parameter " as a material in the

Revit family and then assign independently material to individual instances.

 

Generic Model - Object Style - Material.JPG

hope that helps.

 

Cheers

 

Corsten
Building Designer
0 Likes
Message 4 of 4

dan94kra
Contributor
Contributor

Could Revit API restrictions be lifted? Assigning materials to DirectShapes would be a cool feature

0 Likes