
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good morning all,
I have run into this problem which I cant figure out. My goal is to loop through a bunch of dwg, save them as dxfs, explode everything in the dxf, and save it once again. I run into a problem when I try to explode everything. If I run accoreconsole with:
C:\Program Files\Autodesk\AutoCAD 2019>accoreconsole.exe /i "C:\Users\Owen Busler\Documents\explodeTest.dwg"
I am able to manually select all, explode, and select all again to see that there are more objects and the explode worked.
Execution Path: C:\Program Files\Autodesk\AutoCAD 2019\accoreconsole.exe Version Number: P.46.0.0 (UNICODE) Regenerating model. **** System Variable Changed **** 1 of the monitored system variables has changed from the preferred value. Use SYSVARMONITOR command to view changes. Command: Command: Command: Command: select Select objects: all 1 found Select objects: Command: explode 1 found Command: select Select objects: all 12 found
Now, if I put the exact commands I typed in to a script and run it, The explode doesn't seem to do anything.
Line running the script:
C:\Program Files\Autodesk\AutoCAD 2019>accoreconsole.exe /i "C:\Users\Owen Busler\Documents\explodeTest.dwg" /s "C:\Users\Owen Busler\Documents\ACScript\explode.scr"
Script:
select all explode select all
And the output when the script is ran:
Execution Path: C:\Program Files\Autodesk\AutoCAD 2019\accoreconsole.exe Version Number: P.46.0.0 (UNICODE) Regenerating model. **** System Variable Changed **** 1 of the monitored system variables has changed from the preferred value. Use SYSVARMONITOR command to view changes. Command: Command: Command: Command: select Select objects: all 1 found Select objects: Command: explode Select object: Command: select Select objects: all 1 found Select objects:
It appears that when the script is running explode that it performs a different action. When run manually, the execution of explode says "1 found" saying that it exploded 1 object. When executed by the script it says Select objects: Maybe the script loses the select all before the explode? Any suggestions on how to move forward would be wonderful.
Thank you very much!
Solved! Go to Solution.