how to dump the counter of parameters of model:
d0, d1, d10, d12
became
d0, d1, d2, d3
sorry my english
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).
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?
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?
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
Hi jerry! Hope you are well.
The question for me is:
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?
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
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 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.
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.