Batch edit dwg, read external file, sort it out and run commands, elprocad

Hello

Has an application called Elprocad that uses BricsCad under the hood.

Well, with the command

(elpr_getforms "INRAD2" "C: / Users / nonifo / AppData / Local / Temp / ELPROCAD / ELPROCAD ic / $ eb.txt")

I retrieve data from my .dwg file which looks like this.

'33', '33', 'TEST BOX FOR SIGNAL TESTING', 'D2E0E', 400.00, 0.00
'32', '32', 'TEST BOX FOR SIGNAL TESTING', 'D2CE0', 400.00, 0.00
'31', '31', 'TEST BOX FOR SIGNAL TESTING', 'D2BB2', 400.00, 0.00

The first number that appears between ' ' characters is the sheet number in the dwg file.

Now for the fun part, I want to run this as a script / lisp.
First I want to read the data to a file with

(elpr_getforms "INRAD2" "C: / Users / nonifo / AppData / Local / Temp / ELPROCAD / ELPROCAD ic / $ eb.txt")

Then I want to retrieve data from the file until it runs out, ie the page number.

Jump to the respective sheet with the command (elpr_sheet "1")
where 1 corresponds to the sheetnumber which in turn is retrieved from the file.

Once I'm on the blade, I want to run the command

(cmd_setenv "epcb_cmd" "PROJ_AUT")

then do the same with the next sheet, to the next sheet, to the next sheet.

Then when this is done I want it to continue doing this with the next dwg file that is in the same folder as the first one. but this part we can take as a step 2.

anyone have any ideas?

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. Click one of the buttons on the top bar to get involved!