Workaround for Dialogue Boxes unaffected by FILEDIA=0 (IMPORTSTYLESANDSETTINGS)

Workaround for Dialogue Boxes unaffected by FILEDIA=0 (IMPORTSTYLESANDSETTINGS)

DJGinAZ
Advocate Advocate
1,075 Views
3 Replies
Message 1 of 4

Workaround for Dialogue Boxes unaffected by FILEDIA=0 (IMPORTSTYLESANDSETTINGS)

DJGinAZ
Advocate
Advocate

I have a "Processing" bat/scr/lsp collection that I use to clean our Outgoing files prior to sharing with subs. It can travel from project to project as it works on contents inside whatever folder it's in.  I'm modifying it to process incoming files from our prime, and trying to reset all C3D command settings to utilize the "Standard" style. The easiest way to do that manually, is to use "IMPORTSTYLESANDSETTINGS" and check the Import settings box.

I cannot, for the life of me, get around the dialogue box that opens. (attached) Below is the snippet of code that gets me to the dialogue box, that I can't get passed. 

(command "_qsave")
(setvar "FILEDIA" 0)
(setq settingstemplate  (strcat (getvar 'dwgprefix) "acad.dwt"))
(COMMAND "IMPORTSTYLESANDSETTINGS" settingstemplate  "Y" ); cant suppress, avoid, dodge, or "ENTER" my way through this dialogue box
; maybe something else?
(setvar "FILEDIA" 1)

 

 

 

0 Likes
Accepted solutions (1)
1,076 Views
3 Replies
Replies (3)
Message 2 of 4

cadffm
Consultant
Consultant
Accepted solution

Highlevel hint: FILEDIA means FILE and DIAlog,

it means the usal file-selection-dialog, NOTHING more.

 

Like ATTDIA, ATTribueDIAlog,

just for Attribut dialog.

 

Your civil dialog should react to CMDDIA

 

HTH, i couldn't test it now from my sofa.

Sebastian

Message 3 of 4

DJGinAZ
Advocate
Advocate

@cadffm with the hero reply. 

I guess I should have gone home before midnight last night. It's part of the initial commands the run at the begining and end of the program but I was just testing those specific lines of code so it went right over my head.

Thanks so much!

0 Likes
Message 4 of 4

Sea-Haven
Mentor
Mentor

The two settings seemed to work in this sequence

 

(setvar 'cmddia 0)(setvar 'filedia 0)

(command "._IMPORTSTYLESANDSETTINGS" "my.dwt" "Y")

0 Likes