ilogic to automatically fill the numbering scheme

ilogic to automatically fill the numbering scheme

aurel_e
Collaborator Collaborator
734 Views
4 Replies
Message 1 of 5

ilogic to automatically fill the numbering scheme

aurel_e
Collaborator
Collaborator

Hi all,

is there any way for an ilogic rule to interact with the numbering scheme form?

Our numbering scheme consists in 3 letters (LFE) plus a project number - 6 digits plus a progressive number 3 digits.

When the numbering scheme pops up we need to highlight the ###### and paste the project file number or manually fill it. That is sometimes annoying when you create many new frame generator new parts. I would like the ilogic rule to extract the project number from the active assembly file name/PN (digits 4 to 9), copy it, highlight the ###### in the numbering scheme form and paste.

 

Thanks.

 

 

aurele_0-1683711366170.png

 

0 Likes
Accepted solutions (1)
735 Views
4 Replies
Replies (4)
Message 2 of 5

WCrihfield
Mentor
Mentor
Accepted solution

Hi @aurel_e.  I do not use Frame Generator that much, so I am not familiar with that little form showing in the image you attached, but I wander if you are familiar with the place within the Application Options where you can set up the naming schemes or things like Frame Generator stuff.  It is in the Application Options > File tab > at the bottom is a button named [File Naming Defaults...], and when you click that, a dialog by the same name will open.  Within that dialog are 3 tabs (Frame Generator, Tube & Pipe, & Mirror & Copy).  Within the tab for Frame Generator, there are many places for you to configure how different things will be named by default.

To Customize Frame Generator File Names and Folder Structure 

But if you already know about this, and it doesn't meet your needs, or maybe the form you are showing is a custom one, maybe the code at the following link may give you some ideas.

https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/sequential-file-name-scheme-excel/td... 

If that post is not helpful, there are several other similar posts on this forum which go into examples of custom naming schemes.  Generally speaking, if the form is one that is built into Inventor, we do not have hardly any control over them, and can not easily interact with them.  Often times those forms are 'modal', which means that any code you may have in an iLogic rule or VBA macro will be paused while it is open, making it impossible to interact with it from those types of codes.  And when the form is not modal, it is still very difficult and complex to be able to interact with them.  Sometimes we can attempt to simulate sending keyboard key strokes to the form using System.Windows.Forms.SendKeys.SendWaith() method, but that can be very risky, because it is 'blind' (doesn't know where it is sending the keystrokes), so if the 'system focus' is in the wrong place, those keystrokes may effect something else in your computer.  There is a way to send a few specific types of data up to Inventor's session memory, that may work in certain specific situations to fill in expected built-in forms when they pop-up, but I don't know if that will work in this situation.  It is at the following location:

ThisApplication.CommandManager.PostPrivateEvent()

...and here is the link to its online help page:

https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=CommandManager_PostPrivateEvent 

 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

Message 3 of 5

aurel_e
Collaborator
Collaborator

Thank you @WCrihfield for taking the time to look at this.

I know about the Frame Generator naming but the case is not just about Frame Generator files.

It is a company standard to have the file named that way and the form you are seeing is a Vault Numbering scheme form. 

I'm afraid you might have answered to my question saying that it is practically impossible for the ilogic to interact with these forms.

0 Likes
Message 4 of 5

WCrihfield
Mentor
Mentor

OK.  I am still using Inventor 2022.4.1, and not using Vault, so I would not be able to offer further advise about interacting with that specific dialog.  I have heard that the 2024 version of Inventor does have many new iLogic snippets for interacting with Vault though.  I do not know if any of them would be able to help you in this situation though.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 5 of 5

Support_Charlies3DT
Contributor
Contributor

@aurel_e 

 

Good morning, we are launching a Numbering app this week. I was wondering if you would be interested in testing it? The app is capable of renaming a lot of properties, numbering parts and assemblies and many more things. 

 

You can send me a PM if interested!

0 Likes