Rev table in 2006 SP2.1
Rev table in 2006 SP2.1
(OP)
Happy new year and lots of stars to everybody!
This is something I run into a few minutes ago:
1. I inserted a revision table into my drawing
2. Filled up the description, date and approved by fields. The Rev field is A (by SW).
3. Selected the text for description and linked it with a custom property called ReleaseDesc. Selected the date and linked it to a custom property named ReleaseDate. Selected the approved by text and linked it to a custom property named Releasedby.
4. After these steps the description, date and approved by fields in the revision table were empty. I verified that the custom properties exist and contain text. I went back to the revision table. Still empty. I hit Ctr-Q several times. Still empty. I closed the drawing and opened it again. The rev table is still empty. I changed the layer of the rev table. It is still empty.
What else should I do? How can I make the linked text visible in the rev table?
One more thing. In the linking process, when I select the custom property from the list, the value of the custom property is shown. After I click Ok it disappears.
I am using SW2006 SP2.1
Dell Dimension
Pentium 4, 3.2 GHz
1 GB RAM
NVIDIA GeForce 6800 GT with 256 MB video RAM
Windows XP Pro SP2
This is something I run into a few minutes ago:
1. I inserted a revision table into my drawing
2. Filled up the description, date and approved by fields. The Rev field is A (by SW).
3. Selected the text for description and linked it with a custom property called ReleaseDesc. Selected the date and linked it to a custom property named ReleaseDate. Selected the approved by text and linked it to a custom property named Releasedby.
4. After these steps the description, date and approved by fields in the revision table were empty. I verified that the custom properties exist and contain text. I went back to the revision table. Still empty. I hit Ctr-Q several times. Still empty. I closed the drawing and opened it again. The rev table is still empty. I changed the layer of the rev table. It is still empty.
What else should I do? How can I make the linked text visible in the rev table?
One more thing. In the linking process, when I select the custom property from the list, the value of the custom property is shown. After I click Ok it disappears.
I am using SW2006 SP2.1
Dell Dimension
Pentium 4, 3.2 GHz
1 GB RAM
NVIDIA GeForce 6800 GT with 256 MB video RAM
Windows XP Pro SP2






RE: Rev table in 2006 SP2.1
RE: Rev table in 2006 SP2.1
RE: Rev table in 2006 SP2.1
Windows 2000 Professional / Microsoft Intellimouse Explorer
SolidWorks 2006 SP02.0 / SpaceBall 4000 FLX
Diet Coke with Lime / Dark Chocolate
Lava Lamp
www.Tate3d.com
RE: Rev table in 2006 SP2.1
Happy New Year.
Regarding Linking Notes in Revision Table to Custom Properties of the document:
In SW'05 SP 5.0, the notes are displayed as $PRP:" Field Name" for eg. "$PRP:"Revision Description". whereas the value that field stores is NOT evaluated and displayed.
It looks like SW'06 does not even do that from your posts.
Regards,
RE: Rev table in 2006 SP2.1
I am using SW'05 SP 5.0. I just got some feedback from my VAR regarding linking a Revision Table Column to a Custom Property.
Here is a jist of what he conveyed to me:
(Some of you might know this......yet here goes my rant)
First the Columns in the Revision Table cannot be
linked or updated dynamically.
Second the Columns of Revision Table can be linked
to Custom Properties of the Drawing only.
Third the Rev Table Column should be linked to
Custom Properties prior to adding a Revision.
Following is the procedure:
1.The Custom Property should be available in the
Edit List Box. Can be verified at
File>Properties>Custom>Edit List.
2. Once the property is available in the edit list box, enter its value .
3. Left click a column in a Revision Table.
4. Select Column Properties>Custom Properties>
and select the corresponding Property.
5. Now Right Click the Revision Table and Add Revision
and Boom!! The value appears.
Hope this helps.
Regards
RE: Rev table in 2006 SP2.1
I am using SW2006 SP3.0.
RE: Rev table in 2006 SP2.1
The thing that the whole column is linked to a single property is not very helpful and I understan why, at this point, the columns linked to custom properties can't be updated dinamically.
I was hoping to be able to find a easy way to edit the fields in the Rev table using a macro.
Anyway, GunT, I think you deserve a star.
RE: Rev table in 2006 SP2.1
Lets say the value in the CP is "Initial Release". Go back and edit the value in the Custom Property to a new Value say " Update".
Now add a second row to the Revision Table. And you will see that both Intial Release and Update are displayed in Rows 1 and 2. Your Revision history will be preserved. Thats what I meant when I said its not dynamic. It stores whatever the value you assign it while adding a Revision.
Regards
RE: Rev table in 2006 SP2.1
I was looking for a way to access the fields of the Revision table from a macro. The idea is that when I release a drawing, run a macro to enter the date and name.
Here's a little piece of code that allows me to modify the revision table:
CODE
Option Explicit
Option Base 1
Dim swApp As SldWorks.SldWorks
Dim swModel As SldWorks.ModelDoc2
Dim swPart As SldWorks.DrawingDoc
Dim swView As SldWorks.View
Dim swTable As SldWorks.TableAnnotation
Const swDocDRAWING = 3
Const swTableType = 3
Sub main()
Set swApp = Application.SldWorks
swApp.Visible = True
If Err.Number <> 0 Then
MsgBox "Can not Find SldWorks.Application" & vbCrLf & _
"ErrNo: " & Err.Number & " ErrMsg: " & Err.Description _
, vbOKOnly, "Error"
Err.Clear
GoTo CleanUp
End If
'get the drawing
Set swModel = swApp.ActiveDoc
If swModel Is Nothing Then
Call MsgBox("Unable to open document!", vbExclamation, "Error") ' Display error message
GoTo CleanUp ' If no model currently loaded, then exit
Else
Set swPart = swModel
End If
'Get Drawing Template (first view)
Set swView = swPart.GetFirstView
Do While Not swView Is Nothing
Set swTable = swView.GetFirstTableAnnotation
Do While Not swTable Is Nothing
If swTable.Type = swTableType Then
'Process Table if Revision Table
swTable.Text(2, 1) = "Enter your text"
swTable.Text(2, 2) = Date
swTable.Text(2, 3) = "Your name"
End If
Set swTable = swTable.GetNext
Loop
Set swView = swView.GetNextView
Loop
CleanUp:
Set swApp = Nothing
Set swPart = Nothing
Set swView = Nothing
Set swTable = Nothing
End Sub