Jump to content

script does not work


Recommended Posts

Hello to all

sorry, I use the translator

I have a "A_Hyd_mm" folder with the hydraulic blocks of the autocad electrical library

I want to create slides of these blocks

I use this Script to create slides


_OPEN
FILE
(command "_zoom" "_E")
SLIDE1
_QSAVE

 

the code works but displays the exploded entity

I do not see the clean design but with all the attribute labels

e.g

 

view?usp=sharing

view?usp=sharing

 

thank's

Link to comment
Share on other sites

My suggestion just check the mslide no cad at moment

_OPEN FILE2
(command "_zoom" "_E")
(command "_zoom" "0.8")
mSLIDE

_close
_OPEN FILE2
(command "_zoom" "_E")
(command "_zoom" "0.8")
mSLIDE

_close

Link to comment
Share on other sites

Thanks Al for your advice. It works well

but the problem remains

I have to add now that I use an excel vba to do this

this prg has two problems

1. does not allow saving to a directory other than where it was taken from original files

2. each * .sld file is saved and created but each view is dirty, see all labels

Now

or this excel file is corrupt

or it exists better as a code

 

thank you all

Link to comment
Share on other sites

The only way to avoid "dirty" is to change the dwg then make the slide a manual task I did this for a lot of our slides really used erase very hard but did not save.

 

filedia 0
_Open file1
(command "_zoom" "_E")
(command "_zoom" "0.8")
mSLIDE c:\myslides\file1

_close
_OPEN FILE2
(command "_zoom" "_E")
(command "_zoom" "0.8")
mSLIDE c:\myslides\file2

_close

Link to comment
Share on other sites

Hi Al

I understood your speech and I appreciate your every advice

but

if this lisp does everything because script no?

 

furthermore, if trying to modify sld or dxf in windows jpg format, bmp too many problems

 

to avoid future questions, I have to do database of hydraulic libraries

 

now I attach lisp

 

https://drive.google.com/file/d/1JU5DFs5mwZTjDJgEoAy2V1yLnj-Vp3wk/view?usp=sharing

 

then I attach sql and electric dwg

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...