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

axial parameterization

  • Thread starter Thread starter marza10
  • Start date Start date

marza10

Guest
good evening to all, I take care of special roller bearings, I'm trying to parameterize the design as the executions are very similar to each other, they obviously differ for the odds and for some detail I will add in the final.
I thought I would use ilogic to do everything in cad environment without passing through excel, I created the parametric parts and I also passed the parameters of the parts to the axieme, but to me it would interest to create all the parts and all the assemblies as I recommend to model?
thanks in advance for the help! !
 
Sorry I was unclear and I can't find the button to change the message, however my intention was to design the parts and a standard unchangeable set we say "master" from which then change quotas and other parameters and get the desired execution, saving obviously in a different file both the parts and the new assemblies. to create the master axieme there is no problem, but then to get the desired execution, which medote is the best? if I use ilogic to change the axieme gives me the possibility to save all the parts and the new axieme with a name that takes from a free parameter that I impose? Thank you.
 
Hey, let's see if I can help you. Tell me if I understand.

you parts that have a set with components .

you have to change the component, the axieme, save by name both getting a new set with a new name. and this oppression must be repeated for x times?
 
Thanks for the answer!
exactly; I have to save all the components with different name and of course also the axieme, I would also like that during the modification in the tabellina you could enter the name to give to every single file but I can not make it. the next step would make him copy the idw.
 
according to me you could or create something with vba though it is to study and depends if the game is worth the candle. Alternatively, you can set the "master" axieme with some parameters and use the button when you enter a component called "ilogic component device".
This feature creates a copy of the master axieme that is what you want. you have to impose the parameters
 
I feel like the best solution! I have already made it parametric I have to create the ilogic that I think functions like the ipart, the only thing I have left is if placing an ilogic set actually creates a copy of all the components (however I think it would make no sense). When I have a few minutes at work I try and tell you! Thank you!
 
thanks to the answers, I am optimizing the parts and I wanted to ask, is there any way to impose conditions on the parameters?type if parameter 1=10 then parameter 2 becomes tot, I know that you can do the trivial operations of sums and multiplication with the parameters, but something more complex is not possible? Do I have to go by excel? even if I collect or incorporate the parameters file of the inventor part is limited to reading the parameters, parameters that I should insert at this point in the excel environment to make him make calculations first and generate the parameters already correct with which inventor generates the part.
 
thanks to the answers, I am optimizing the parts and I wanted to ask, is there any way to impose conditions on the parameters?type if parameter 1=10 then parameter 2 becomes tot, I know that you can do the trivial operations of sums and multiplication with the parameters, but something more complex is not possible? Do I have to go by excel? even if I collect or incorporate the parameters file of the inventor part is limited to reading the parameters, parameters that I should insert at this point in the excel environment to make him make calculations first and generate the parameters already correct with which inventor generates the part.
what you ask is easily feasible with ilogic, and for operations of this type you just need a minimum knowledge of basic and some attempt. I suggest you try to look at some ilogic tutorials before deciding what way to take, in the end you might just need a few lines of code to do everything you need (like "if parama = 1 then paramb = 75" and so on to make a stupid example).
 
what you ask is easily feasible with ilogic, and for operations of this type you just need a minimum knowledge of basic and some attempt. I suggest you try to look at some ilogic tutorials before deciding what way to take, in the end you might just need a few lines of code to do everything you need (like "if parama = 1 then paramb = 75" and so on to make a stupid example).
Thank you so much you opened me a world! I'm trying to arm myself a little!
 
thank you all for the answers! Sorry if I still break the boxes: As for the parts I developed a rule with simple if then else that allows me to manage all the design, the thing I can't do is read a text parameter and use it as the name of the new file.
use function
thisdoc.document.saveas(newfilenameandextension , true)
but I can't pass a parameter as a subject.
 
thank you all for the answers! Sorry if I still break the boxes: As for the parts I developed a rule with simple if then else that allows me to manage all the design, the thing I can't do is read a text parameter and use it as the name of the new file.
use function
thisdoc.document.saveas(newfilenameandextension , true)
but I can't pass a parameter as a subject.
in the ilogic editor, in the messagebox node, you will find at the bottom (last row) inputbox, which should serve your purpose.
 
in the ilogic editor, in the messagebox node, you will find at the bottom (last row) inputbox, which should serve your purpose.
Thank you! I can't understand how I should use it.
from what I understand imptbox generates a window where it lets me enter a string that reads as a parameter, or is it wrong?

Excuse me maybe I didn't explain well, the parameter I can read it, I can't insert it as the topic of the function, when I complete the rule tells me: incorrect parameter. (except for hresult: 0x80070057 (e_invalidarg))
 
dim newfilename as string
newfilename = inputbox("prompt", "title", "default entry")
thisdoc.document.saveas(newfilename, true)

dim declares the variable
inputbox asks for a text and stores it in the variable
use the variable as filename to pass to saveas
 
dim newfilename as string
newfilename = inputbox("prompt", "title", "default entry")
thisdoc.document.saveas(newfilename, true)

dim declares the variable
inputbox asks for a text and stores it in the variable
use the variable as filename to pass to saveas
Great now I try!
 
I'm sorry if I still take advantage of your kindness when I turn it out to me:
error not specified. (except from hresult: 0x80004005 (e_fail))

Could it be dictated by the fact that I work on a file saved on servers? Now I try to copy it locally and try again

nothing from the same mistake even locally. . .
 
After a couple of tests, I think I understand your problem. from what I discovered ilogic does not allow to use the saveas command on subassiemi: it only works on the main axieme. I suppose you're editing a subaxieme seen with the only main set everything works well. at this point further tips depend on what you want to do (which you have already explained) and the very precise structure of your set: Maybe you just need to open the axieme to change by yourself.

I hope I explained. . .
keep us updated
 
After a couple of tests, I think I understand your problem. from what I discovered ilogic does not allow to use the saveas command on subassiemi: it only works on the main axieme. I suppose you're editing a subaxieme seen with the only main set everything works well. at this point further tips depend on what you want to do (which you have already explained) and the very precise structure of your set: Maybe you just need to open the axieme to change by yourself.

I hope I explained. . .
keep us updated
Thank you, I have searched for the type of visual basic error, it is very generic and I can't find anything else, I think at this point I will do the save by name!
 
ho risolto trovando questa regola su questo forum http://inventortrenches.blogspot.it/2012/10/ilogic-adding-save-as-dialog-box.html
non conosco bene le regole per postare materiale esterno ma vorrei postarla, magari serve a qualcuno.
oltre a salvare con nome il file con un parametro definito, apre la finestra di dialogo per scegliere la cartella!

'define the active document
odoc = thisdoc.document
'create a file dialog box
dim ofiledlg as inventor.filedialog = nothing
inventorvb.application.createfiledialog(ofiledlg)

'check file type and set dialog filter
if odoc.documenttype = kpartdocumentobject then
ofiledlg.filter = "autodesk inventor part files (*.ipt)|*.ipt"
else if odoc.documenttype = kassemblydocumentobject then
ofiledlg.filter = "autodesk inventor assembly files (*.iam)|*.iam"
else if odoc.documenttype = kdrawingdocumentobject then
ofiledlg.filter = "autodesk inventor drawing files (*.idw)|*.idw"
end if

'set the directory to open the dialog at
ofiledlg.initialdirectory = thisdoc.workspacepath()
'set the file name string to use in the input box
ofiledlg.filename = iproperties.value("project", "part number")

'work with an error created by the user backing out of the save
ofiledlg.cancelerror = true
on error resume next
'specify the file dialog as a save dialog (rather than a open dialog)
ofiledlg.showsave()

'catch an empty string in the imput
if err.number <> 0 then
messagebox.show("file non salvato.", "salvataggio")
elseif ofiledlg.filename <> "" then
myfile = ofiledlg.filename
'save the file
odoc.saveas(myfile, false) 'true = save as copy & false = save as
end if
 

Forum statistics

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

Members online

No members online now.
Back
Top