[Previous Page] [Next Page] [Goodies Readme Contents] [Goodies Readme Index] [More Documentation] [PTC]

Controlling read-only status of parts/assemblies

Overview

Since SolidDesigner 3.0 parts/assemblies/workplanes can be read-only, that is, modifications on such an object are rejected by Creo Elements/Direct Modeling. However, this functionality was mainly used in conjunction with a database-integration product, e.g. WorkManager.

Activation

Enter into command line

   (load "dbdialog") 

Or add this line to your customization file.

Loading this file will create a button in the toolbox.

Description

Creo Elements/Direct Modeling offers a dialog which enables non-database users to easily inquire/set/change the read-only status of any 'object' that can be stored/loaded into Creo Elements/Direct Modeling.

screen shot of ui

The new dialog (terminate action) is:

OBJFLAGS -+- <select object>----+-- :Q_CONTENTS --+----+
          |                     |                 |    |
          |                     +-- :Q_INSTANCE --+    |
          |                                            |
          |       +--------------<---------------------+
          |       |
          |       V
          |       |
          |       +->-+--- :Q_DBRO  ---+-----+-- :ON ---+---+-- COMPLETE -->
          |       |   |                |     |          |   |
          |       |   +--- :Q_DBMOD ---+     +-- :OFF --+   |
          |       |   |                |                    |
          |       ^   +--- :Q_SDRO  ---+                    V
          |       |   |                |                    |
          |       |   +--- :Q_SDMOD ---+                    |
          |       |                                         |
          |       +------------------<----------------------+
          |                                                 |
          +---<---+------------------<----------------------+
<select object>
is any (single) object that is suitable for filing (see SAVE_SD command), e.g. part, assembly, workplane, workplane set.
:Q_CONTENTS
selects the 'contents' portion of the object for inquiry/modification of flags. This is the default when the dialog is entered.
:Q_INSTANCE
selects the 'instance' portion of the object for inquiry/modification of flags.

Flags to be inquired/set by the dialog:

After the user has selected an object (part, assembly etc.) the dialog will display the current 'flag' settings of the object and can therefore be used as a visual inquiry function.

However the dialog also allows to set/reset each of the 4 following flags by entering the flags 'type' followed by either :ON to set the flag or :OFF to reset the flag.

The following flags can be controlled:

:Q_SDRO Creo Elements/Direct Modeling Read-Only Flag
Setting this flag to :ON will make the object read-only. Creo Elements/Direct Modeling will disallow modifications of this object. Setting this flag to :OFF will make the object modifiable.
NOTE: This flag controls the read-only/modifiable status of an object 'inside' a single Creo Elements/Direct Modeling session. If an object is saved with any of the SAVE_SD, SAVE_SD_MODIFIED and SAVE_PACKAGE commands, the read-only status will not be contained in the file. When an object is loaded into a different Creo Elements/Direct Modeling session, it will no longer be read-only. Setting this flag to :ON is therefore intended for users who want to temporarily disable changes to an object. For setting a 'non-volatile' read-only status of an object, refer to the :Q_DBRO flag described below.
:Q_SDMOD Creo Elements/Direct Modeling Modified Flag
Setting this flag to :ON marks the object as modified. This flag is used by the command SAVE_SD_MODIFIED which stores only modified objects.
NOTE: This flag can only be reset by the SAVE_SD and SAVE_SD_MODIFIED commands. It is not possible to set this flag to :OFF by this dialog.
:Q_DBRO Data Base Read-Only Flag
Setting of this flag to :ON makes the object read-only. But in contrast to the :Q_SDRO mentioned above, the :Q_DBRO flag is a persistent flag which is contained in the file when the object is saved. This means that the object will be read-only when it is loaded from disk.
:Q_DBMOD Data Base Modified Flag
Setting of this flag to :ON marks this object as modified from the database point of view. This is used by database integrations (e.g. WorkManager) to decide if an object needs to be saved into the database. This behavior is similar to the SAVE_SD_MODIFIED command, which uses the :Q_SDMOD flag to decide which objects need to be saved.

Notes

There are several interdependencies between the flags described above:

Warnings

[Previous Page] [Next Page] [Goodies Readme Contents] [Goodies Readme Index] [More Documentation] [PTC]
© 2023 Parametric Technology GmbH
(a subsidiary of PTC Inc.), All Rights Reserved