Print at Dec 17, 2025, 9:14:37 AM

Posted by sjb007 at Dec 6, 2022, 10:47:21 PM
Re: ROOF WINDOW / VELUX WINDOWS
I'm cursed with only getting half the thought from my head to the screen.

I don't have a problem with character validity checking. It is the action that is the problem. Better to remove, or change the problem character to an OK one. Currently export drops the entire name.

Example: the "small window" model, a window (hinged), roller shutter (rail), and a roller shutter crank (hinged).
The line:
g sweethome3d_opening_on_hinge_2_Roller_Shutter_Crank_Cylinde.000

fails because of the ".", and just becomes "15" or some such number. This breaks the hinging. It also makes it impossible to detect when hinge_2 was used, meaning you cannot watch for the hinge being redefined.

.obj was first created around 1990. As far as I'm aware there is no body or organisation managing the spec. There doesn't even seem to be a golden source for the spec. It seems it has acreted additional features over time that as far as I can tell are adopted ad-hoc. Many libraries and loaders of varying feature sets, speed, and quality. Then there are all the programs that roll their own code to load/save.

So yeah... I stick by prehistoric. There are people out there writing code for this spec where the coder is much fresher than the spec!

So actions speak louder than words:
1. Amend my export patch to stop nuking the entire name.
2. Amend my export patch to make the hierarchy renaming an option.
3. Write a simple script to make the hinges not clash when exporting/importing.
4. (Stretch-goal) Change my export patch into a plugin.