XDSoft 发表于 2021-1-12 00:25:28

Attribute dialog does not display when using the -INSERT Command function


问题:
I use the -INSERT command with the command function and if the block has attributes, the Enter Attributes dialog should be displayed allowing you to fill in the attributes. In some cases the dialog box is not displayed.

解答:
If ATTDIA is set to 1 and the INITDIA function is called prior to using the -INSERT command, the Enter Attributes dialog is shown instead of the command line prompts for the attributes.

Here is a the AutoLISP code snippet that shows the idea.


(setvar "ATTREQ" 1)
(setvar "ATTDIA" 1)
(initdia)
(command "-insert" "MyBlock")
Note: see the AutoLISP Reference for more information on INITDIA.

页: [1]
查看完整版本: Attribute dialog does not display when using the -INSERT Command function