Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Login
Register
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
Periodic flag in a spline doesn't match periodic value shown in properties?
« previous
next »
Print
Pages: [
1
] |
Go Down
Author
Topic: Periodic flag in a spline doesn't match periodic value shown in properties? (Read 788 times)
0 Members and 1 Guest are viewing this topic.
V@no
Newt
Posts: 25
AutoCAD 2023
Periodic flag in a spline doesn't match periodic value shown in properties?
«
on:
April 27, 2024, 09:59:59 AM »
I've been playing around with
group 70
of a spline and noticed that "periodic" bit (bit 2) could be set, but spline's properties panel shows it as not set:
Code - Auto/Visual Lisp:
[Select]
(
logand
(
cdr
(
assoc
70
(
entget
(
SSNAME
(
ssget
":S"
'
(
(
0
.
"SPLINE"
)
)
)
0
)
)
)
)
2
)
Why is that?
Thanks.
Logged
It's Alive!
Retired
Needs a day job
Posts: 8804
AKA Daniel
WWW
Re: Periodic flag in a spline doesn't match periodic value shown in properties?
«
Reply #1 on:
April 27, 2024, 10:36:43 PM »
PyRx shows False
Code - Python:
[Select]
import
traceback
from
pyrx_imp
import
Rx
,
Ge
,
Gi
,
Db
,
Ap
,
Ed
,
Gs
def
PyRxCmd_doit
(
)
-
>
None
:
try
:
db
=
Db.
curDb
(
)
es
=
Ed.
Editor
.
entSel
(
"
\n
Pick it: "
,
Db.
Spline
.
desc
(
)
)
if
es
[
0
]
!=
Ed.
PromptStatus
.
eOk
:
raise
Exception
(
"Oops {}: "
.
format
(
es
[
0
]
)
)
sp
=
Db.
Spline
(
es
[
1
]
)
print
(
"isPeriodic= "
,
sp.
isPeriodic
(
)
)
except
Exception
as
err:
traceback
.
print_exception
(
err
)
Quote
Command: DOIT
Pick it: isPeriodic= False
Logged
https://github.com/CEXT-Dan/PyRx
https://pyarx.blogspot.com/
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
Periodic flag in a spline doesn't match periodic value shown in properties?