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

macro its solid edge: save asm ed esportare automatically stp

MattiaG

Guest
hi to all, in the company we have solid edge 2023 and are looking for a macro that can automatically generate a step file when I carry out the rescue of the asm. then a: save project (only asm) and also generates file step (stp).
Could someone help me with this case? thanks to all in advance
 
Code:
dim objedge as solidedgeframework.application
dim objasm as solidedgeassembly.assemblydocument

objedge = getobject(, "solidedge.application")

if objedge.activedocumenttype = solidedgeframework.documenttypeconstants.igassemblydocument then
    objasm = objedge.activedocument
    objasm.save()
    objasm.saveas(path.changeextension(objasm.fullname, "stp"))
    objasm = nothing
end if

objedge = nothing
 
ciao,
@mattiag by curiosity, could you explain the attitude between a solid edge macro and the rendering section?
@cacciatorino, please move the discussion to its correct section?
I would need an automatic creation of a stp to load in the pdm when I save my asm. I thought of a macro command to make a simultaneous rescue of asm-stp. if you have any other ideas, tell me:)

just to know, in which section should I put the question? Thank you.
 
I answered you because you asked me a question. Calm down.
be on edge I have already considered it (thanks a thousand)
You're right, stupid I thought I'd move the question to the correct section.
you will also consider the answer @be_on_edge, but in 15 days you couldn't tell if you were useful.
 
You're right, stupid I thought I'd move the question to the correct section.
you will also consider the answer @be_on_edge, but in 15 days you couldn't tell if you were useful.
Except I don't think I have to give you reasons, but since we're here.. 1) I wrote to him in private thanking him also 2) not being a thing to which I can devote full time being precisely to work and not being a primary request there is cases that need more time:)
I hope I have satisfied your questions.
about the correct section.. I thought you were asking in which section I should put the question by question of order and you were just worthy to criticize with a battutine without answering. . so avoid it.
said this for the rest thanks for transferring me to the right section.
 
I thought you were asking in which section I should put the question by question of order and you were just worthy to criticize with a battutine without answering. .
You asked after 15 days from your request and after I moved the discussion. .
the answer was already in my first message, but I summarize it to you: no rendering si solid edge.
this is a public discussion and therefore the answers must be public, write in private details of the discussion deprives all other users of information that can be useful to them, specifically who will have the same need will not know if that code works if not making attempts or losing time to make further requests.
 

Forum statistics

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

Members online

No members online now.
Back
Top