I can use the below satement to add a circle to model space:
BlockTableRecord blockTableRecordObj = currentTransactionObj.GetObject(blockTableObj[BlockTableRecord.ModelSpace], OpenMode.ForWrite) as BlockTableRecord;
Or use the below statement to add a circle to paper space(Layout):
BlockTableRecord blockTableRecordObj = currentTransactionObj.GetObject(blockTableObj[BlockTableRecord.PaperSpace], OpenMode.ForWrite) as BlockTableRecord;
Now, I want to create a command create a circle, the center specified by mouse, it can be explain: add the circle to the current space base on the current window, but I did not find a property called the current space...
I hope someone can help me, very thanks.
Solved! Go to Solution.
Solved by _gile. Go to Solution.
Can't find what you're looking for? Ask the community or share your knowledge.