ARX可以调用lisp定义的全局变量吗?
1个回答
展开全部
回复:最初由
fylinwater
发布以前做了很多lisp函数
现在想改用ARX
但在以前的lisp中定义了一些自己的全局变量
希望在arx中还可以直接调用
int
acedGetSym(const
char*
sname,struct
resbuf**
value);Include
Fileacedads.hRetrieves
the
value
of
a
bound
AutoLISP
symbol.This
function
can
be
used
in
the
ARX
program
environment
only
when
AutoCAD
sends
the
message
kInvkSubrMsg
to
the
application.The
sname
argument
specifies
the
symbol
name.
The
value
argument
is
set
to
a
pointer
in
a
result-buffer
list
(note
the
extra
level
of
indirection)
that
contains
the
value
of
the
symbol.
If
the
AutoLISP
symbol
is
bound
to
a
value
of
a
type
that
can't
be
represented
by
a
list
of
ARX
result
buffers
(such
as
a
subr
or
exsubr),
the
acedGetSym()
call
fails.
If
the
symbol
is
not
found
or
is
nil,
acedGetSym()
returns
RTNORM
and
sets
the
contents
of
value
(*value)
to
NULL.The
acedGetSym()
function
returns
RTNORM
if
it
succeeds
and
RTERROR
if
it
fails.
When
acedGetSym()
fails,
it
sets
the
system
variable
ERRNO
to
a
value
that
indicates
the
reason
for
the
failure.
fylinwater
发布以前做了很多lisp函数
现在想改用ARX
但在以前的lisp中定义了一些自己的全局变量
希望在arx中还可以直接调用
int
acedGetSym(const
char*
sname,struct
resbuf**
value);Include
Fileacedads.hRetrieves
the
value
of
a
bound
AutoLISP
symbol.This
function
can
be
used
in
the
ARX
program
environment
only
when
AutoCAD
sends
the
message
kInvkSubrMsg
to
the
application.The
sname
argument
specifies
the
symbol
name.
The
value
argument
is
set
to
a
pointer
in
a
result-buffer
list
(note
the
extra
level
of
indirection)
that
contains
the
value
of
the
symbol.
If
the
AutoLISP
symbol
is
bound
to
a
value
of
a
type
that
can't
be
represented
by
a
list
of
ARX
result
buffers
(such
as
a
subr
or
exsubr),
the
acedGetSym()
call
fails.
If
the
symbol
is
not
found
or
is
nil,
acedGetSym()
returns
RTNORM
and
sets
the
contents
of
value
(*value)
to
NULL.The
acedGetSym()
function
returns
RTNORM
if
it
succeeds
and
RTERROR
if
it
fails.
When
acedGetSym()
fails,
it
sets
the
system
variable
ERRNO
to
a
value
that
indicates
the
reason
for
the
failure.
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询