Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

counter of parameters

11 REPLIES 11
Reply
Message 1 of 12
cheitu
636 Views, 11 Replies

counter of parameters

how to dump the counter of parameters of model:
d0, d1, d10, d12
became
d0, d1, d2, d3

 

sorry my english

11 REPLIES 11
Message 2 of 12
cheitu
in reply to: cheitu

Is there a solution? may be vba macros?

Message 3 of 12
SteveMDennis
in reply to: cheitu

Not sure what you want. Are you asking how to make the parameters have sequential numbering?

Or are you saying it HAPPENED to you and you want to know how it happened?

 

I am aware of no way to do this (on purpose or by mistake).



Steve Dennis
Sr. Principal Engineer
Inventor
Autodesk, Inc.

Message 4 of 12
cheitu
in reply to: cheitu

The part has the following parameters: d0, d1, d2 and so on, sometimes during the working process it’s necessary to delete one or several parameters d, but parameter counter continues. For example:

Initial state was: d0, d1, d2, d3.

After that parameter d3 was deleted.

So the next parameter will be d4: d0, d1, d2, d4 and so on.

The question is is it possible to make Inventor to continue numbers from the beginning: so it must be d0, d1, d2, d3… instead of  d0, d1, d2, d4 ... , at the same without renaming parameter d4 to d3. Is it possible to reset parameter counter?      

Message 5 of 12
SteveMDennis
in reply to: cheitu

Thanks for the clear explanation.

 

There is no way to do this today. Is it technically feasible? Yes.  But it isn't just renaming those variables. We would have to search every equation in the system and change any d4 to d3 (in your example).

 

VBA programs that were already written to use d4 would also break or behave badly.

 

I'm not sure you really want to do this.

 

Is it just the cleanliness of the variables that you want to attain?



Steve Dennis
Sr. Principal Engineer
Inventor
Autodesk, Inc.

Message 6 of 12
JBerns
in reply to: cheitu

@SteveMDennis,

 

I realize this is an old post, but I think a tool available to developers would be useful to reset the parameter counter.

We use at our own risk.

 

Here is my assembly parameters (see attachment) after a few months of development and testing (Component.Add, Component.Replace, etc.) 

 

I hope Inventor uses long integers for its counter.  😉

 

 

Regards,

Jerry

-----------------------------------------------------------------------------------------
CAD Administrator
Using Inventor 2022
Autodesk Certified Instructor
Autodesk Inventor 2020 Certified Professional
Autodesk AutoCAD 2017 Certified Professional
Message 7 of 12
SteveMDennis
in reply to: JBerns

Hi jerry! Hope you are well.

 

The question for me is:

  1. Do you want to remove all "holes" in the counting ANYTIME during usage of the file
  2. Do you want to "reset" the holes only once in your template?

 

And I assume this would only work on non-user named variables?

 

i.e. if you changed D12 to MyD12 we would never touch that one during the reset?

 



Steve Dennis
Sr. Principal Engineer
Inventor
Autodesk, Inc.

Message 8 of 12
JBerns
in reply to: SteveMDennis

Hi, Steve.

 

I would see this as an an On-Demand tool. This would not run constantly.

 

Run the tool, which renumbers (renames) the existing non-user-renamed parameters and then resets the parameter counter to the next highest number. This would "fill the holes".

 

Correct, this would only work on non-user named variables? In your example, d12 renamed to MyD12 would not be renamed or reset.

 

Options to rename sketches, work features, features, etc. would be useful.

Options to reset counters for the above would also be useful.

 

Again, I see this mostly for Developers and CAD Managers. It would be a "use at your own risk" tool, just in case there may be bugs in the first release of the tool. 😉

 

 

Regards,

Jerry

 

-----------------------------------------------------------------------------------------
CAD Administrator
Using Inventor 2022
Autodesk Certified Instructor
Autodesk Inventor 2020 Certified Professional
Autodesk AutoCAD 2017 Certified Professional
Message 9 of 12
anthonyzepeda1969
in reply to: JBerns

This is an old issue I see. But has Inventor ever come up a counter/identifier reset feature?

Looking to reset view creation identifiers, see screenshot. 

 

@SteveMDennis  [tagged by community manager] (Hi Steve)

 

anthonyzepeda1969_0-1673447569170.png

 

Message 10 of 12
SteveMDennis
in reply to: cheitu

@anthonyzepeda1969 you've kind of hit the nail on the head on why we haven't done this yet, there are a lot of counters in the system.

The modus operandi for Inventor is we never "fill in holes" (reuse) or collapse.

We do NOT have a command to this.

The original post was for parameters, Jerry added a few more things and now you've added another (view id)...

Is there an Ideas Forum post for this already that I have missed? If so, up vote it. If not let's get one created.

This is not as easy as some would think (we would want to do ALL counters) but not impossible or so large as to be a poor return on our investment.



Steve Dennis
Sr. Principal Engineer
Inventor
Autodesk, Inc.

Message 11 of 12

Actually the view counter reset was brought up before. I found an old query referecing view identifier reset. Not here in the forum. I just did a search on Autodesk general search bar and an article popped up.

I'll check the ideas forum and upvote it.

I'm sure it is not an easy task. 

 

Thanks you answered my question. 

Message 12 of 12

Found this in the Inventor Ideas forum from 2016.

drawings-re-number 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report