jerry00769 Posted May 2, 2020 Posted May 2, 2020 Hello, at first, this 2 points works perfectly in DraftSight SW but not in AutoCAD I call AutoCAD from excel VBA and run script scr commands, only 3... 1) Auto open dwg +script: ACAD = Shell("C:\Program Files\AutoCAD 2010\acad.exe " & PathName & "\" & FilenameDWG & " /b " & sPath & "\commandSCR.scr") means app_path_exe file_path_name /b script_path_name > DraftSight is ok not AutoCAD 2) script commands in scr file: a) _.-LAYER > works b) -image > works c) REPLACEDIMENSIONTEXT > works in DraftSight perfectly like this (try replace Hcooler by 8510): REPLACEDIMENSIONTEXT 8510 ES Hcooler I would like to ask you for a help with the following 2 points: 1) Auto open dwg +scr: app_path_exe file_path_name /b script_path_name (run DOS coomand to open dwg and scr together) 2) Find & Replace dimension text similar to scr Draftsight command "Replacedimension text" as above mentioned Is there any chance to help me? Many thanks for your feedback in advance. BR, Jerry CZ Quote
BIGAL Posted May 3, 2020 Posted May 3, 2020 https://knowledge.autodesk.com/support/autocad-lt/learn-explore/caas/CloudHelp/cloudhelp/2019/ENU/AutoCAD-LT/files/GUID-8675B657-8C15-4594-BDFB-644B66BD02D7-htm.html 1 Quote
jerry00769 Posted May 3, 2020 Author Posted May 3, 2020 7 hours ago, BIGAL said: https://knowledge.autodesk.com/support/autocad-lt/learn-explore/caas/CloudHelp/cloudhelp/2019/ENU/AutoCAD-LT/files/GUID-8675B657-8C15-4594-BDFB-644B66BD02D7-htm.html Hello Bigal, many thx… ACAD freezing display a white screen, because there is dwg read only marked and don´t display me info to click "Y" for accepting. When I answer "Y", everything is ok (my mistake). The solution is setting up all dwg files not read marked... There is my excel VBA shell command, which works ok at this moment AutoCAD = Shell("C:\Program Files\AutoCAD 2010\acad.exe " & PathName & "\" & FilenameDWG & " /b " & sPath & "\commandSCR.scr") Do you or anybody have also any idea about REPLACEDIMENSIONTEXT draftsighcommnad correspong to ACAD? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.