vbaを使用してAutoCADのレイヤーを削除しようとしています。ランタイムエラー-2145320931(8021001d)"オブジェクトが他のオブジェクトによって参照されています。
- 削除しようとしているレイヤーは、どのエンティティにも属していません。
- 削除しようとしているレイヤー名は0ではなく、アクティブなレイヤーではありません。
前もって感謝します
vbaを使用してAutoCADのレイヤーを削除しようとしています。ランタイムエラー-2145320931(8021001d)"オブジェクトが他のオブジェクトによって参照されています。
前もって感謝します
The objects within your drawing will be represented on a particular layer. If any of the drawing objects still sit on that layer, you will not be able to delete it because those objects still reference the layer.
First, make sure that no objects are present on that layer. Next, if you have deleted objects from the layer you may also have to purge them from the drawing database before the layer can be deleted.
Also bear in mind that according to the Developer Documentation you cannot delete Layer 0, Defpoints or the current layer.