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

rename files and number part

  • Thread starter Thread starter Tarkus
  • Start date Start date

Tarkus

Guest
If I renounce a file, when I open it, I see the new name at the top of the browswer, as well as in iproperties/general.
Instead, in iproperties/project the number part, which is nothing but the file name given with the first save to creation, remain unchanged.
is there a possibility to change the number part after a rename of the file?, i.e. number part= file name
 
there are pdms that do everything automatically
I don't understand, should I install a pdm to automatically rename a property?
I'm looking for ways to do it with inventor resources, maybe with ilogic and an ad hoc macro,
 
. Of course, with ilogic you can manage the event . but here it would take some ilogic gurus
 
Let's say that the operation in if you do in a few lines: the "problem" is more understand how you would want to perform the operation. in ilogic are few commands but to connect to the "event triggers" inside each part/axieme, for the new stuff you do it in the template but for the old one... (besides the doubt of which trigger to choose, depends on how you renounce).
or do you have the main axieme open and launch the utility (in the end? every once in a while?) that you pass all the files and run the operation, but if you have any number part you do not want to touch it would not be okay.
That's what comes to my mind. the second solution would be fine, that some posts ago I made a very similar macro and would be almost ready?
 
I understand what you mean:
if the rename is made on a file in which I have already inserted the hypothetical ilogic rule, or if the rename also concerns old files that this rule do not have.
I would say that the best would be both things, I certainly would like to give the model of this rule, although at the moment I need more for the old, so for these would be better a macro to operate to command (all and two can be done? ).
As far as rename them all together, I also believe that it is not good, there are certainly third-party components, which may have a different encoding than mine, so better one by one.
Moreover, the final beanie would have the file name in the field iproperties/project/description, instead of in number part.
p.s.
I also wrote you in m.p.,
 
then, the ilogic rule that copies the file name in the description is:
Code:
iproperties.value("project", "description")=thisdoc.filename(false) 'without extension
to copy the file name in the part number:
Code:
iproperties.value("project", "part number")=thisdoc.filename(false) 'without extension
with ilogic this is how much.

I am not an expert in ilogic, I use it very little, but I think it is ideal to create an external rule, copying the affected rows in a .txt file and then linking it from the browser ilogic > external rules > button dx > add external rules (I see on 2016)

as to the event trigger to have the operation automatically I think that the most suitable among those available is "after the opening of the document", although obviously they multiply to unmix the useless calls and I do not know what effect they have on big assemblies: You're gonna be a guinea pig.
 
Okay, it works.
thanks catafract.:4425:
I am now trying that name in description with parts under the trigger "after opening the document", although I would not exclude putting it in a vba module and launching the macro to need.
as for my purposes, if there was any way to not write the file name in number part, leaving the empty box, it would be even better, but for alas it is already a good advantage like this.:biggrin:
 
here, in vba the code does not turn because the commands I used are specific ilogic (poor lines also in vba but I have to pull them out)
if you want to "clean" the number starts from ilogic do
iproperties.value("project", "part number")="
 
if you are in a set use the save command and replace component found in the productivity menu of the axieme.

Hi.
 

Forum statistics

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

Members online

No members online now.
Back
Top