Announcements

Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.

NurbSpline Visability

aclarke
Advocate
Advocate

NurbSpline Visability

aclarke
Advocate
Advocate

Is there a way to control the visibility of a nurb spline?, 

 

Say I want to hide the spline but see the straight lines and control points only.

 

NurbSpline.PNG

0 Likes
Reply
563 Views
5 Replies
Replies (5)

jeremytammik
Autodesk
Autodesk

In general, if a feature is not available in the Revit product manually through the user interface, then the Revit API will not provide it either.

 

You should therefore research the optimal workflow and best practices to address your task at hand manually through the user interface first.

 

To do so, please discuss and analyse it with an experienced application engineer, product usage expert, or product support.

 

Once you have got that part sorted out, it is time to step up into the programming environment.

 



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

0 Likes

aclarke
Advocate
Advocate

Hi Jeremy

This sure is an answer, no answer scenario.

 

If I Select the spline manually this will show the straight pieces and the controls, so there is graphical representation that can be seen and hidden.  What are the straight lines called, please?

 

I can hide the spline using VG, so it can be hidden.

 

I believe what I want to do is possible, but I really don't know.

Before I spend valuable time chasing rabbits down rabbit holes, I post to this forum so I can discuss with an experienced person.

 

If anybody wants to discuss this with me, I am eager to learn.

 

Thanks

 

 

 

 

 

 

 

 

0 Likes

jeremytammik
Autodesk
Autodesk

Sorry for the no answer and thank you for the clarification.

 

I think the points are called control points, so I would call the lines control lines.

 

I cannot imagine Revit supporting any scenario displaying the control lines without the spline curve.

 

A workaround might be to add model lines representing the control lines and hiding the spline curve.

 

What are you aiming to achieve, and why?

 



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

0 Likes

aclarke
Advocate
Advocate

Hi Jeremy

control points, control lines, make sense. 

What is the tessellate,  The RevitDocs says it is a polyline representation, I was thinking this was the 'control line' or it just maybe the actual graphic representation of the spline itself?

 

Creating my own lines to trace the control points did cross my mind but I was hoping that I could just piggy back off of the idea that by selecting the nurb the control lines show and I could find a way to just turn this on all the time for my purposes and turn off the spline.

 

The nurb's control points are always in order, reversible, I can add and remove control points, and each point has a coordinate id.  This hidden line has a gold mine of uses.

0 Likes

jeremytammik
Autodesk
Autodesk

The tessellation is an approximation of the spline curve itself using (potentially very) many little straight line segments. Visually, you cannot distinguish between the tessellation and the original spline curve. The tessellation has nothing to do with the control points or lines.

 



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