Inkscape.org
  1. #1
    matthuszagh matthuszagh @matthuszagh

    I'm creating a symbol library of electrical engineering circuit elements. I created a file with elements as discussed here. I aligned the connectors of these components to a 1x1mm grid so that I can use snapping. However, when I opened a new file to create a schematic the symbols were a different size (smaller) than the size I'd created them. I know I can rescale them to the be the right size, but this is a pain. Why would these symbols be a different size than how I'd created them? How can I change this so that they are the same size. Finally, I've had trouble finding information about symbols. The only information I've really been able to find is in the link in this post. I was not able to find anything in the actual manual.

    I can provide more information if needed, such as the symbol file.

  2. #2
    Patrick Storz Patrick Storz @Ede_123

    Check if scaling factors of the document containing your symbols and the document you want to insert them into are the same. I suspect they're inserted at their original size.

  3. #3
    matthuszagh matthuszagh @matthuszagh

    Thanks for the recommendation. They appear to be the same. I looked at File-> document properties and under page and scale I see 1 for x and y in both documents.

  4. #4
    Tyler Durden Tyler Durden @TylerDurden
    *

    Looks like the bug that I have griped about before, is still an issue.

    I round-tripped a 10mm square and it came back 2.646mm.

    Documents were the default mm units, scale=1.

     

    It did work as expected when I set the scale of the original document to 3.77953.

     

  5. #5
    Tyler Durden Tyler Durden @TylerDurden

    New bug report filed: https://gitlab.com/inkscape/inbox/-/issues/4574

  6. #6
    Tyler Durden Tyler Durden @TylerDurden

    @matthuszagh, If you set the Document properties scale to 3.77953, the symbols should behave as expected and retain the original size when used in other documents.

  7. #7
    matthuszagh matthuszagh @matthuszagh

    Thanks for the suggestion @TylerDurden and thanks so much for filing the bug report. Your solution works but there seems to be one downside of it, which is that if I insert a symbol back into the symbol document it shows up 3.77953x larger than it should. Is there a way to avoid this? I plan to make symbols composed of multiple other symbols so it would be useful if it were the same size. I could of course duplicate the existing objects, but still this seems a bit weird.

  8. #8
    matthuszagh matthuszagh @matthuszagh

    Actually, this is creating funny issues with some symbols (e.g., thicker lines than in the original).

  9. #9
    matthuszagh matthuszagh @matthuszagh
    *

    I'm finding scaling and units in inkscape very confusing. I found this page, which helped somewhat. From what I've read, it appears that "user unit" is just another term for pixel. So, 1 user unit per mm (which is the default) is wrong with a DPI of 96. Why does inkscape expose this scaling and not simply calculate the right number of user units? Additionally, if user unit does just mean pixel, why does setting this to 3.77593 result in oversized objects when reinsterting a symbol back into the same document? And, why am I seeing overly thick lines when inserting symbols into other documents?

  10. #10
    matthuszagh matthuszagh @matthuszagh

    This issue looks to also be related.