• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

multiple conversion of dwg to sld

  • Thread starter Thread starter blintz
  • Start date Start date

blintz

Guest
hello to all and compliments for the new forum
I press that I have searched both on the network and on the forum but I have found nothing satisfactory
My question is this
is it possible, by script or other, to select many .dwg files and turn them into .sld slide?
I, in my limit, do it by autocad.... but one at a time
Thank you.
 
in a script write in sequence the commands you use to create files
there is a script generator in the forum (it is called createfilescript) that automates work
 
thanks for the answers
I downloaded the file, but as said I am not very capable with scripts
if it was vba or anything, there were no problems
I'll try...
Thank you.
 
you have already prepared rpor66, you just have to upload the files and create the script.
But if you know the vba language, you couldn't make a code with that?
 
What is there to understand?
the code is written (you said rpor566 and I rimarcato), on the top left there is a button with written select file and immediately right one with written create script
press button 1 (delete files to convert)
press button 2 (Save the script)
 
in sheet 1 find the button <seleziona file="">, click and select the dwg files to process; in response if you hang files, select no; the column is emptied to and copied the names of the files included in the path.
the button <crea file="" script=""> combines what is present in column d with file names by creating the .scr script that you will have to call from autocad.
the composition of the .scr file happens by writing a file with what is contained in the d column and replacing the word file with the first file name, it repeats with the next as long as it finds file names.

p.s.: the button <preset> shows a dialog with the preset titles contained in the columns from the l on, to be used as a track to create your own script; in your case it is called <crea slide="">greetings</crea></preset></crea></seleziona>
 
first I have to make you my apologies
I had downloaded a version (old) of the file, which has nothing to do with the one above
question, why if I open a block, do I appear exploded?
 
explains better why if you enter a block it is normal that you find all the individual entities unless you have a block inside a block
 
Okay.
the files that I want to turn into slide are electrical autocad blocks, in this case they are of the hyd library, they are all electrovalves and other
logically if I do it in autocad... enter block, and then it indicts attributes
if you do not write anything remains the clean block....
I'm afraid this is a mess
 
Please explain how if you were not in your head you know what you have to get.
first you talk about opening blocks and finding them exploded, then inserting blocks and if you don't give up anything remains clean
You have to turn into slide, okay now you know how to do it. Don't you already have the designs to convert? what the blocks to insert explosives or not exploded with attributes or without attributes.. .
It's a certain mess if you don't explain well, but well, what you want to get and what situation you start
 
ok I will try to be as clear as possible
thanks to "creafilescript" I managed to create a slide.
the problem is that dwg are blocks
I would like the slide to be created without displaying attribute entries
So...01_cadforum.webp
e non cosi'02_cadforum.webp
 
question 1: Why do you have to explode the blocks?
question 2: Are attributes always the same?
question 3: Are the attributes on a different layer than the lines of the object?
question 4: So far what steps did you do to make slides (open files, block explosions, delete attributes...., create slides)?
 
Good morning, and thank you for your patience
1. the blocks do not explode them, do the program vba
2. Yes, they are those of the library provided by autocad
3. no, it's a unique layer
4. insert block
I choose the file
uniform scale (x,y,z =100)
inserted
attributes no
gendia
select destination folder
done


I'll train you a blockblocking
 
Why don't you do everything in vba?
That's not what I want to know. I don't know what and how autocad attributes are made. Do attributes always have the same properties?
 
Why don't you do everything in vba?
I'm doing it, but I wanted to go deeper, I wanted to know if there was a valid reason that when it matters the *.src file instead of presenting you a clean slide shows you 'exploded'
maximum online attributes are standard
However if you open the file you see it alone
 
However if you open the file you see it alone
and what file should I open?
I'm not the one who has to go looking for things to help you and the time I've dedicated so far I literally stole it from another client.
 
the file you have attached (on external site, why don't you use the allega file of the forum?) is saved with a too recent version (2017?). I have 2013
I tried with a random file with attributes to which I deleted the text and when I load the slide I see it exactly as I created it ie only with drawing without texts.
You talk about a vba program that explodes the blocks, but where does this program work? When? because in your sequence of operations, between insert the block and save the slide there is no program called.
I tried the script attached by ropr66 and it works smoothly; the diapositva can be seen clean
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top