Element draftblock is not defined

Hi, I made this pattern yesterday and it was working fine . Today I tried to open it but it shows this message and wont open . is there anyway to fix it. , please? note : I made this pattern without adding any measurement file to the pattern .

apron pattern.sm2d (15,0 KB)

1 Like

Hi Sara…Yes. We’ve seen this happen before. For some reason this part of the pattern file:

<     !--Pattern created with Seamly2D v2023.11.27.149 (https://seamly.io).-->
<     version>0.6.8</version>
<     unit>cm</unit>
<     description/>
<     notes/>
<     measurements/>
<     increments/>

was written in the middle of the file and not at the top so draftBlock "Apron " was being parsed out of order:

Here’s the fixed pattern file:

apron pattern_fixed.sm2d (15.0 KB)

I also suggest you update to the latest release as the pattern was written using a a version that’s about a year and 1/2 old. There’s been a lot of bug fixes and new features added since then.

3 Likes

Thank you very much:hibiscus: But I have a question: If I update to the latest version, will all my previous patterns work fine on this new version or will I need to redo it again ?

All your previous patterns will work with any new release. They will get converted to the new pattern version. It does mean though that once you save in a new format, the pattern can not be opened in an older version of Seamly2D. In the case where you do open on older version pattern a backup file is made before converting. For example if you had a pattern named mypattern.sm2d… it will be renamed with the ver number appended… like mypattern_v068.sm2d. So in the worst case senario you can always go back to a pattern that opens in an older version of the app.

BTW… I just merged a major bug fix to the internal paths which will be in the next release sun eve - mon morning… so I suggest waiting till the new release appears to update.

3 Likes