生成应用程序并在新图形中运行CREATE命令,然后使用AutoCAD的INSERT命令在“ 0”层上添加一个或多个EMPLOYEE块实例。 创建插入后,执行SETLAYER命令将每个EMPLOYEE块引用层更改为USER。 使用AutoCAD的LIST命令,您可以检查参考在哪一层。 或者,您可以关闭图层。 请参见AutoCAD的LAYER命令.

在编译项目时,您可能会收到以下错误.

"C2338: /RTCc rejects conformant code, so it isn't supported by the C++ Standard Lib Either remove this compiler option, or define _ALLOW_RTCc_IN_STL to acknowledge that you have received this warning."



这是Visual Studio 2019发出的一致消息,请确认在运行时类型检查(又称为RTC)中所做的更改.
抑制错误- define _ALLOW_RTCc_IN_STL in preprocessor



步骤3图1-在预处理器中定义宏

 

NEXT: Step 4 - Xrecords - Named Objects Dictionary

Test CREATE and SETLAYER commands
Copyright ? 2013 Autodesk, Inc.