Message Boards Message Boards

1
|
8925 Views
|
4 Replies
|
1 Total Likes
View groups...
Share
Share this post:

Move the model named "Generator" to class "ElectricalModels" in SM?

Posted 7 years ago

Hi,

I need/want to move the model named "Generator" from class "GenericModels" to class "ElectricalModels". Of course I want all my models to get that I am moving it so that I do not have to re-create every model I ever created containing the model "Generator".

I suspect there is no way of doing this, but if so creating a new library is damn near impossible unless you know from beforehand what categories will be most practical for model grouping.

Thanks,

Martin

POSTED BY: Martin Nilsson
4 Replies
POSTED BY: Patrik Ekenberg
POSTED BY: Neil Singer
Posted 7 years ago

Hi again,

actually, when reading your post I realized it can be even simpler. Since I am on Linux I do not need ModelCenter at all, in fact it is easier without.

A nifty combo of grep and sed will swiftly replace "GenericModels.Generator" with "ElectricalModels.Generator" in all files (i.e. models).

(One can do the same in windows since the bash shell is now available).

I'll try this tomorrow. And backup before beginning...

Regards

POSTED BY: Martin Nilsson

True. That will work well.

Make sure you copy the Generator to ElectricalModels first so when you open the models after your find/replace they can find the new Generator. Also, you are correct that it is a good idea to backup first!

Regards

POSTED BY: Neil Singer
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract