AutoLISP和ActiveX/VBA比较参考(VBA/ActiveX)

本文详细比较了AutoLISP函数与ActiveX和VBA在AutoCAD中的等效使用,涵盖了基本运算、逻辑操作以及特定功能的调用,展示了它们在图形处理软件中的协作与差异。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

AutoLISP函数与类似的ActiveX®和VBA函数及运算符之间的比较。

ActiveX Automation等效项由“AutoCAD.Application.”表示,VBA等效项作为函数或运算符列出。

Visual LISP and ActiveX/VBA Comparison
AutoLISP functionActiveX or VBA equivalent
+ (addition)+ (addition operator)
- (subtraction)- (subtraction operator)
* (multiplication)* (multiplication operator)
/ (division)/ (division operator)
= (equal to)= (equal to comparison operator)
/= (not equal to)<> (not equal to comparison operator)
< (less than)< (less than comparison operator)
<= (less than or equal to)<= (less than or equal to comparison operator)
> (greater than)> (greater than comparison operator)
>= (greater than or equal to)>= (greater than or equal to comparison operator)
~ (bitwise not)Not operator
1+ (increment)Use + (addition operator)
1- (decrement)Use - (subtraction operator)
absAbs function
acad_colordlgNot provided
acad_helpdlgSearch for HELP in the online Help index
acad_strlsortSearch for SORT in the online Help index
action_tileUse the Dialog Editor
add_listUse the Dialog Editor
adsAutoCAD.Application.ListADS method
alertMsgBox function
andAnd operator
angleAutoCAD.Application.ActiveDocument.Utility.AngleFromXAxis method
angtofAutoCAD.Application.ActiveDocument.Utility.AngleToReal method
angtosAutoCAD.Application.ActiveDocument.Utility.AngleToString method
appendUse array manipulation functions
applyNot provided
arxAutoCAD.Application.ListARX method
arxloadAutoCAD.Application.LoadARX method
arxunloadAutoCAD.Application.UnloadARX method
asciiAsc function
assocNot provided
atanAtn function
atofCDbl Function
atoiCInt Function
atomSearch for IS in the online Help index
atoms-familyNot provided
autoarxloadNot provided
autoloadNot provided
booleUse logical operators
boundpSearch for IS in the online Help index
car/cdrUse array manipulation functions
chrChr function
client_data_tileUse the Dialog Editor
closeAutoCAD.Application.Documents.Close method
commandAutoCAD.ActiveDocument.SendCommand method
condSelect Case statement
consUse array manipulation functions or AutoCAD.Application.collection.Add<entityname> method
cosCos function
cvunitUse the conversion functions
defunThe keywords Function and End Function
dictaddAutoCAD.Application.ActiveDocument.Dictionaries.Add method
dictnextAutoCAD.Application.ActiveDocument.Dictionaries.Item method
dictremoveAutoCAD.Application.ActiveDocument.Dictionaries.Dictionary.Delete method
dictrenameAutoCAD.Application.ActiveDocument.Dictionaries.Dictionary.Rename method
dictsearchAutoCAD.Application.ActiveDocument.Dictionaries.Dictionary.GetName and GetObject methods
dimx_tile and dimy_tileUse the Dialog Editor
distanceAutoCAD.Application.Utility.GetDistance for interactive method
distofNot provided
done_dialogUse the Dialog Editor
end_imageUse the Dialog Editor
end_listUse the Dialog Editor
entdelAutoCAD.Application.ActiveDocument.collection_object.Delete method
entgetAutoCAD.Application.ActiveDocument.collection_object.property properties
entlastAutoCAD.Application.ActiveDocument.Modelspace.Item(count-1)
entmakeAutoCAD.Application.ActiveDocument.Modelspace.Add<entityname> method
entmakexAutoCAD.Application.ActiveDocument.Modelspace.Add<entityname> method
entmodUse any of the read-write properties for the object
entnextAutoCAD.Application.ActiveDocument.collection.Item method
entselAutoCAD.Application.ActiveDocument.SelectionSets object/methods/properties
entupdAutoCAD.Application.ActiveDocument.Modelspace.object.Update method
eqNot provided
equalEqv operator
*error*Error object/method/properties
evalNot provided
exitAutoCAD.Application.Quit method
expExp function
expandNot provided
expt^ (exponentiation operator)
fill_imageUse the Dialog Editor
findfileDir function
fixFix, Int, CInt functions
floatCDbl Function
foreachFor Each...Next statement
gcAutoCAD.Application.ActiveDocument.PurgeAll method
gcdNot provided
get_attrUse the Dialog Editor
get_tileUse the Dialog Editor
getangleAutoCAD.Application.ActiveDocument.Utility.GetAngle method
getcfgAutoCAD.Application.Preferences.property property
getcnameNot provided
getcornerAutoCAD.Application.ActiveDocument.Utility.GetCorner method
getdistAutoCAD.Application.ActiveDocument.Utility.GetDistance method
getenvAutoCAD.Application.Preferences.property property
getfiledUse the file dialog
getintAutoCAD.Application.ActiveDocument.Utility.GetInteger method
getkwordAutoCAD.Application.ActiveDocument.Utility.GetKeyword method
getorientAutoCAD.Application.ActiveDocument.Utility.GetOrientation method
getpointAutoCAD.Application.ActiveDocument.Utility.GetPoint method
getrealAutoCAD.Application.ActiveDocument.Utility.GetReal method
getstringAutoCAD.Application.ActiveDocument.Utility.GetString method
getvarAutoCAD.Application.GetVariable method
graphscrAppActivate AutoCAD.Application.Caption
grclear (obsolete)Not provided
grdrawNot provided
grreadNot provided
grtextAutoCAD.Application.ActiveDocument.Utility.Prompt method
grvecsNot provided
handentAutoCAD.Application.ActiveDocument.ModelSpace.object.Handle property
helpSearch for HELP in the online Help index
ifIf… Then… Else statement
initgetAutoCAD.Application.ActiveDocument.Utility.InitializeUserInput method
intersAutoCAD.Application.ActiveDocument.Modelspace.object.IntersectWith method
itoaStr function
lambdaNot provided
lastarrayname(UBound(arrayname))
lengthUBound function
listReDim statement
listpIsArray function
load_dialogUse the Dialog Editor
loadAutoLISP is not supported through Automation
logLog function
logandAnd function
logiorOr function
lshImp function
mapcarNot provided
maxMax function
memNot provided
memberUse collection
menucmdAutoCAD.Application.MenuBar object
menugroupAutoCAD.Application.MenuGroup object
minMin function
minuspUse < 0 syntax
mode_tileUse the Dialog Editor
namedobjdictAutoCAD.Application.ActiveDocument.Dictionaries collection
nentselAutoCAD.Application.ActiveDocument.SelectionSets.SelectionSet.SelectAtPoint method
nentselpAutoCAD.Application.ActiveDocument.SelectionSets.SelectionSet.SelectAtPoint method
new_dialogUse the Dialog Editor
notUse the logical operators
nthUse object(n) syntax
nullIsNull function
numberpTypeName function
openOpen function
orUse the logical operators
osnapNot provided (You can use the AutoCAD.Application.SetVariable method to control the OSMODE system variable.)
polarAutoCAD.Application.ActiveDocument.Utility.PolarPoint method
prin1AutoCAD.Application.ActiveDocument.Utility.Prompt method
princAutoCAD.Application.ActiveDocument.Utility.Prompt method
printAutoCAD.Application.ActiveDocument.Utility.Prompt method
prognNot provided
promptAutoCAD.Application.ActiveDocument.Utility.Prompt method
quitAutoCAD.Application.Quit method
quoteNot provided
readNot provided
read-charInput function
read-lineLine Input function
redrawAutoCAD.Application.ActiveDocument.Modelspace.object.Update method
regappAutoCAD.Application.ActiveDocument.RegisteredApplications.Add method
remMod function
repeatFor… Each, While,
reverseNot provided
rtosAutoCAD.Application.ActiveDocument.Utility.RealToString method
setSet function
set_tileUse the Dialog Editor
setcfgAutoCAD.Application.Preferences.property property
setfunhelpNot provided
setqSet function
setvarAutoCAD.Application.SetVariable method
sinSin function
setviewAutoCAD.Application.ActiveDocument.Viewports.Viewport.SetView method
slide_imageUse the Dialog Editor
snvalidNot provided
sqrtSqr function
ssaddAutoCAD.Application.ActiveDocument.SelectionSets.Add method
ssdelAutoCAD.Application.ActiveDocument.SelectionSets.SelectionSet.Delete method
ssgetAutoCAD.Application.ActiveDocument.SelectionSets.SelectionSet.SelectOnScreen method
ssgetfirstNot provided
sslengthAutoCAD.Application.ActiveDocument.SelectionSets.SelectionSet.Count method
ssmembCompare ID of object with the SelectionSet members
ssnameAutoCAD.Application.ActiveDocument.SelectionSets.SelectionSet.Name property
ssnamexNot provided
sssetfirstAutoCAD.Application.ActiveDocument.PickfirstSelectionSet property
startappShell function
start_dialogUse the Dialog Editor
start_imageUse the Dialog Editor
start_listUse the Dialog Editor
strcaseStrConv function
strcat& operator
strlenLen function
substNot provided
substrMid function
tabletNot provided
tblnextAutoCAD.Application.ActiveDocument.collection_object.Item method
tblobjnameAutoCAD.Application.ActiveDocument.collection_object.Name method
tblsearchAutoCAD.Application.ActiveDocument.collection_object.Name method
term_dialogUse the Dialog Editor
terpriNot provided
textboxAutoCAD.Application.ActiveDocument.space.object.GetBoundingBox method
textpageNot provided
textscrNot provided
traceNot provided
transAutoCAD.Application.ActiveDocument.Utility.TranslateCoordinates method
typeTypeName function
unload_dialogUse the Dialog Editor
untraceNot provided
vector_imageUse the Dialog Editor
verAutoCAD.Application.Version property
vportsAutoCAD.Application.ActiveDocument.Viewports collection
wcmatchLike operator
whileWhile… Wend
write-charPrint function
write-linePrint function
xdroomNot provided
xdsizeNot provided
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

山水CAD插件定制

你的鼓励是我创作最大的动力!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值