PDA

View Full Version : Problem using Awm_pub_sd_vrml1_checkout macro


alexniccoli
11-24-2003, 07:48 AM
Hi
I have some problem using a workmanager macro:
Awm_pub_sd_vrml1_checkout
I use this macro to publish on an html page the last version of the model linked to the current part in vrml format.
In particular appens what follows:when i view the main vrml file,it doesn't appear completely.
Viewing the main vrml file with a text editor i see that it contains a reference to a file that doesn't exist.I mean that this file is created during the checkout procedure with a different name.
For Example the main vrml file contain the reference to 4002000002.1-4002000002.wrl but the checkout creates the file 4002000002-4002000002.wrl

Thanks a Lot.Excuse me for my bad english.

alexniccoli
11-25-2003, 02:23 AM
I think that there is a BUG in cocreate code.
Consider a model.If i modified and save the entire model the vrml produced is ok.
But if i modify a part(not the geometry) of the model ad save the model ,and not only the part modified the vrml produced is wrong.

Solution:
If you modify a part of the model don't save the model but only the part modified.


Problem:
If i move a part the problem still exist.The vrml produced is wrong.

alexniccoli
12-02-2003, 07:36 AM
I have understood that shared parts cause lots of problems in publishing the model in vrml.

The macro put in a temporary directory a lot of vrml files one for each part of the assembly.And that's ok.
the problem is that the main vrml file(created by Solid Designer and stored into wm database)generally contain references to other vrml files that are checked out with different names:a name of a different shared part.

I have solved the problem processing via macro all vrml file ad modifing all references to file that not exist with reference to vrml files that exist in the temporary directory.

For example if in the main vrml file exist the reference to file
5001000024.1-5001000024.wrl
and in the directory there is the file
5001000024.1.1-5001000024.wrl
i change via macro the reference to the file that exist.
The problem is that i can't use '.' and '-' in the code(name) of models.

Excuse me for my enghish