Display full version of the post: DWG Trueview - Page setup/ 3D DWF problem

Breeze104
20.03.2008, 17:01
I have several files that will not publish because it says  "layout not initialized"
How do I fix this problem?

Vladimir Michl
20.03.2008, 20:28
You will need to initialize (setup, define) the complaining layouts in AutoCAD.

Breeze104
20.03.2008, 22:22
I understand that, but that is what I am not sure how to do. Breeze1042008-03-20 22:22:49

Vladimir Michl
21.03.2008, 09:36
In AutoCAD, just switch to the respective layout and use the PAGESETUP command. You need to define scale, page format, etc.

Breeze104
21.03.2008, 12:35
I have got several hundred files I have to do that to. 
 
Do you or any one know where to get a LISP or script file that I can automate the process with?

Vladimir Michl
21.03.2008, 16:17
You can use e.g. Autodesk ScriptPro and run the following script on all your DWG files:
 
[CODE]VBAstmtFor Each Lay In ThisDrawing.Layouts: Lay.ConfigName = "None": Next Lay: ThisDrawing.Save[/CODE]

Breeze104
21.03.2008, 19:43
It says "Unknown command "[CODE]VBASTMT".  Press F1 for help."

Vladimir Michl
21.03.2008, 20:13
I cannot see any "[CODE]" in the script from my posting - please use the exact text (starting with "VBASTMT...").

Breeze104
21.03.2008, 20:34
When I viewed it through my e-mail it looked like this...
 

[CODE]VBAstmtFor Each Lay In ThisDrawing.Layouts: Lay.ConfigName = "None": Next Lay: ThisDrawing.Save[/CODE]
I will try again with out the [CODE]