Ukryj spis treści

Mapping a Revision Number to a Drawing Title Block

In this example, a workflow updates drawing title blocks whenever a drawing is approved.

This example demonstrates the only method available for updating a file data card variable with the file revision number. You cannot update a file data card with a revision number using the Increment Revision command from the Explorer view.

This example is based on the default workflow and file data cards created when setting up a new vault.
  1. Create the revision number format (see Creating Revision Number Formats):
    1. Create a revision number component called AlphaRev with a format string of A,B,C,...,Z and an initial value of 1.
    2. Create a revision number format called Revision using the AlphaRev component.
  2. Set up the data card variable mapping (see Mapping to SolidWorks Custom Properties):
    1. Open the SolidWorks file data card.
    2. Add an edit box control with a variable called Revision.
    3. Edit the Revision variable to make sure the CustomProperty block has a Revision attribute mapped to SolidWorks drawing files (.slddrw).
  3. Link the revision number to the workflow (see Creating Workflow Transitions and Creating Workflow States):
    1. Open Default Workflow.
    2. Open the Passed approval Transition Properties dialog box.
    3. Add a new Set Variable action to assign the Revision variable to Next Revision (%nextrevision%).
    4. Add an Inc. Revision action.

      Ensure that the Inc. Revision action follows all Set Variable actions, otherwise the revision will be set on the previous version that is created when the variable is updated.

    5. Close the Transition Properties dialog box.
    6. Expand the Approved state box.
    7. Select Revision as the Revision number to use.
    8. Close the expanded state box and save the workflow.
  4. Set up the SolidWorks drawing title block:
    1. Open a drawing file in SolidWorks.
    2. Edit the sheet format to add a note linked to a custom property called Revision.
    3. Save the drawing to a local folder.
  5. Test the updating of the drawing title block:
    1. Drag the SolidWorks drawing into a vault view folder and check in the file.
    2. Change state of the drawing until it passes the Passed Approval transition and ends up in the Approved state.

      The next revision should now be set on the drawing file and the Revision variable in the file data card should show the value.

    3. Open the drawing in SolidWorks.

      The revision appears in the title block.



Wyraź swoje opinie dotyczące tego tematu

SOLIDWORKS docenia wszelkie informacje i uwagi dostarczone przez użytkownika na temat prezentacji, dokładności oraz prawidłowości dokumentacji. Proszę użyć poniższego formularza, aby wysłać komentarze I sugestie na temat tego tematu do naszego zespołu dokumentacyjnego. Zespół dokumentacyjny nie może udzielać informacji na pytania natury technicznej. Proszę kliknąć tutaj, aby uzyskać informacje dotyczące pomocy technicznej.

* Wymagane

 
*Email:  
Temat:   Opinie dotyczące tematów pomocy
Strona:   Mapping a Revision Number to a Drawing Title Block
*Komentarz:  
*   Oświadczam, że zapoznałem/zapoznałam się z polityką prywatności, zgodnie z którą moje dane osobowe będą wykorzystywane przez firmę Dassault Systèmes, i niniejszym ją akceptuję

Wydrukuj temat

Wybierz zakres treści do druku:

x

Wykryliśmy że używasz przeglądarki w wersji starszej niż Internet Explorer 7. Dla zoptymalizowanego wyświetlania sugerujemy uaktualnienie przeglądarki do Internet Explorer 7 lub nowszej.

 Nie pokazuj tego komunikatu ponownie
x

Wersja zawartości pomocy w sieci Web: SOLIDWORKS PDM 2012 SP05

Aby wyłączyć pomoc w sieci Web w oprogramowaniu SOLIDWORKS i użyć zamiast tego pomocy lokalnej, należy kliknąć Pomoc > Użyj pomocy SOLIDWORKS w sieci Web.

Aby zgłosić problemy związane z interfejsem lub funkcją wyszukiwania pomocy w sieci Web, należy skontaktować się z lokalnym przedstawicielem pomocy technicznej. Aby wyrazić opinie dotyczące poszczególnych tematów pomocy, należy użyć łącza “Opinie dotyczące tego tematu” na stronie danego tematu.