TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: sysuwzx on March 31, 2016, 08:42:50 AM
-
When i select a spline, the property named "Knot parameterization" on the properties panel can be changed to "chord" "sqrtchord" "uniform" and "custom".
My question is, is there one group code control this property? If yes, what is it? cant find it in the dxf reference
-
It seems to be undocumented, I think it is gc 70.
-
Roy is right, 70 is the code that holds the knot parameterization.
From dxf reference
Group code 70: Spline flag (bit coded):
1 = Closed spline
2 = Periodic spline
4 = Rational spline
8 = Planar
16 = Linear (planar bit is also set)
It seems incomplete, but is easy to find the other valid values:
32 = chord
64 = sqrt. chord
128 = uniform
256 = custom
512 = show CV frame
1024 = if present, the spline is defined by fit points. Otherwise, by control vertices.
-
It seems to be undocumented, I think it is gc 70.
What you guess is right! And the document is not complete. Thanks a lot!
-
Roy is right, 70 is the code that holds the knot parameterization.
From dxf reference
Group code 70: Spline flag (bit coded):
1 = Closed spline
2 = Periodic spline
4 = Rational spline
8 = Planar
16 = Linear (planar bit is also set)
It seems incomplete, but is easy to find the other valid values:
32 = chord
64 = sqrt. chord
128 = uniform
256 = custom
512 = show CV frame
1024 = if present, the spline is defined by fit points. Otherwise, by control vertices.
Wonderful! Thanks! :smitten: