- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I am trying to draw full pages of drawings using pre-defined commands synchronously.
I have a PaletteSet that opens in AutoCAD and I have buttons to draw various pages. I cannot use editor.Command() since it is application context, and I do not wish to use async commands or sendstringtoexecute since you cannot rely on manipulating the data afterwards.
In order to draw wires and insert blocks the way I want, the only method I have found is to open a transaction, and insert the block that way, and for wires, I open a transaction, draw a line, change the layer to the wire layer I need, and insert a wddot if it hits an intersection. This seems to be overkill when there are great commands that do this for you in the API Help. I just cannot run any of them in synchronous application context. The commands I would like to use are as follows:
(c:wd_insym2 sym xy scl options) - For inserting Blocks
(c:wd_putwnxyfq xy newval) - (or some wire drawing equivalent) For inserting wires
Is there any way to do this? It seems like it shouldn't be so difficult to use pre-defined commands.
Thank you,
Solved! Go to Solution.