Is there a way to call refedit with a function or a class instead of calling it via acedCommand() or ads_queueexpr()?
|
Is there a way to call refedit with a function or a class instead of calling it via acedCommand() or ads_queueexpr()?
Consider the sendStringToExecute function.
"How we think determines what we do, and what we do determines what we get."
Sincpac C3D ~ Autodesk Exchange Apps
Computer Specs:
Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000
This article by Kean is a bit old, but still helpful:
Techniques for calling AutoCAD commands programmatically
"How we think determines what we do, and what we do determines what we get."
Sincpac C3D ~ Autodesk Exchange Apps
Computer Specs:
Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000
Thanks so much for your response!
Were setting up a test with the SendStringToExecute().
I found more information regarding the problem when talking to AutoDesk.
In the OEM Make Wizard we are setting some of the commands to internal.
Of them I believe refedit was the only command we actually reference in the code using acedCommand. When we get to the portion of the code that has acedCommand AutoCAD gives unknown command. When I type it in manually I get unknown command.
We tried xrefnotify as a base case as well. Xrefnotify gave unknown command in both cases as well.
For testing purposes we set the commands in the OEM that were Internal to Full.
We were able to get xrefnotify to work when it was set to Full. Refedit however was unchanged.
Very Strange, we are getting the internal commands from the OEM to work as intended in 64bit OEM. But in 32bit OEM we are having the problem with refedit not being callable. Ill let you know more as as I know more.
Paul