Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow creating component from symbol #548

Open
dbrgn opened this issue Oct 15, 2019 · 5 comments
Open

Allow creating component from symbol #548

dbrgn opened this issue Oct 15, 2019 · 5 comments
Labels

Comments

@dbrgn
Copy link
Member

dbrgn commented Oct 15, 2019

SUMMARY

Often you need to create a component that matches a symbol 1:1. This is quite tedious, since all fields need to be copy-pasted.

SOLUTION

In the context menu of a symbol, add an entry "Create component". Open the component creation dialog, but pre-fill the following fields, copying the values from the symbol:

  • Name
  • Description
  • Keywords
  • Author
  • Categories
@dbrgn dbrgn added enhancement UI / UX User Interface/Experience labels Oct 15, 2019
@ouabache
Copy link

Plus copy all the symbol pins to create the component signals and set the default symbol variant to point back to the symbol.

@ubruhin
Copy link
Member

ubruhin commented Oct 19, 2019

In the context menu of a symbol, add an entry "Create component".

That helps only if you want to add the component in the same library as the symbol resides, but often that's not the case.

I'd suggest to just change the order of pages in the component creation wizard. When creating a new component, the wizard could first ask for the symbols to add, and for metadata afterwards. If only one symbol was added, the metadata could automatically be copied from the symbol.

I'm not sure if that's really a good idea, but it might be worth a try. It would also fix another issue: Currently the entered metadata is lost if you first enter the metadata and afterwards realize that the required symbol does not exist yet. The only option is to close the dialog (and thus loose the metadata), create the symbol, and re-open the dialog again afterwards.

@dbrgn
Copy link
Member Author

dbrgn commented Oct 19, 2019

The only option is to close the dialog (and thus loose the metadata), create the symbol, and re-open the dialog again afterwards.

Yep, happened to me very often.

When creating a new component, the wizard could first ask for the symbols to add, and for metadata afterwards. If only one symbol was added, the metadata could automatically be copied from the symbol.

Would probably be a good idea, yes.

@rnestler
Copy link
Member

That helps only if you want to add the component in the same library as the symbol resides, but often that's not the case.

Isn't it the 90% case that the component is in the same library?

I'd suggest to do both. Have it select the symbol as the first step in the wizard, or create it directly from the context menu and skip/pre-fill the first step in the wizard.

@ouabache
Copy link

ouabache commented Oct 19, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

4 participants