formatting
|
|
Access
|
read-only
|
Returns
|
fStringArray
|
fullname
|
|
Access
|
read-write
|
Returns
|
String
|
Set throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
TAG_EXISTS: A tag of the same name already exists.
|
isProtected
|
|
Access
|
read-only
|
Returns
|
boolean
|
linkPath
|
|
Access
|
read-only
|
Returns
|
fPath
|
linkType
|
|
Access
|
read-only
|
Returns
|
int
|
name
|
|
Access
|
read-write
|
Returns
|
String
|
Set throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
TAG_EXISTS: A tag of the same name already exists.
|
namespace
|
|
Access
|
read-write
|
Returns
|
fNamespace
|
readonly
|
|
Access
|
read-only
|
Returns
|
fStringArray
|
tagClass
|
|
Access
|
read-only
|
Returns
|
int
|
temp
|
|
Access
|
read-only
|
Returns
|
fStringArray
|
type
|
|
Access
|
read-write
|
Returns
|
int
|
Set throws
|
fContentException
INVALID_TYPE: The type of tag is not suitable for the available content.
|
user
|
|
Access
|
read-only
|
Returns
|
fStringArray
|
copyTagnamens
|
|
Parameters
|
Stringname
The name of the tag to copy into, including PTC ALD namespaces if required. This tag must not already exist, otherwise an exception will be raised.
fNamespacens
The PTC ALD namespace to create the new tag in. If not provided, the root namespace will be used.
|
Returns
|
fTag. Returns the newly created fStream, fGraphic, fRaster or fNamespace object (depending on type).
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
TAG_EXISTS: A tag of the same name already exists.
INVALID_TYPE: The type of tag is not suitable for the available content.
|
deleteTagupdateTextreplaceText
|
|
Parameters
|
booleanupdateText
If true, a search and replace will automatically be performed, replacing any references to the name of this tag with the text in the replace parameter. Note that this action may not always be accurate, depending on the complexity of the template. This property defaults to false.
StringreplaceText
The text to use if updateText is true.
|
Returns
|
void. None
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
|
linkfilenametype
|
|
Parameters
|
fPathfilename
The full name and path of the file to link to. If this is left blank, the link will be broken.
inttype
The type of link to create. This value is one of fTag.TagLinkFormat. Unless the contents of the tag were loaded into PTC ALD using the import methods, this will be set to fTag.LINKFORMAT_PTC ALD.
|
Returns
|
void. None
|
Throws
|
fApplicationException
FILE_WRITE_ERROR: An error occurred creating the file.
fContentException
INVALID_TYPE: This type of tag is not suitable for linking.
|
readResolveobj
|
|
Parameters
|
Objectobj
The serialized representation.
|
Returns
|
fTag. The tag corresponding to the serialized representation.
|
renameTagnamensupdateText
|
|
Parameters
|
Stringname
The new name of the tag.
fNamespacens
The PTC ALD namespace to create the new tag in. If not provided, the root namespace will be used.
booleanupdateText
If true, a search and replace will automatically be performed, replacing any references to the old name of this tag with the new name. Note that this action may not always be accurate, depending on the complexity of the template. This property defaults to false.
|
Returns
|
fTag. Returns the newly created fStream, fGraphic, fRaster or fNamespace object (depending on type).
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
TAG_EXISTS: A tag of the same name already exists.
INVALID_TYPE: The type of tag is not suitable for the available content.
|
saveLinkforcenoCheck
|
|
Parameters
|
booleanforce
If false, only save the content if it has been changed inside PTC ALD. Otherwise, save the content regardless.
booleannoCheck
If false, the content will only be saved if the content is less recent than the linked file. Otherwise, save the content regardless.
|
Returns
|
void. None
|
Throws
|
fContentException
TAG_NOT_LINKED: The tag is not linked to a file.
LINK_TOO_OLD: The contents of the tag are more recent than the link, and noCheck was false.
fApplicationException
FILE_WRITE_ERROR: An error occurred writing to the file.
|
updateLinkforcenoCheckbreakLink
|
|
Parameters
|
booleanforce
If false, only reload the content if the file has been changed after the last load. Otherwise, load the content regardless.
booleannoCheck
If false, the content will only be loaded if the content is less recent than the linked file. Otherwise, load the content regardless.
booleanbreakLink
If false, the link will remain after updating. Otherwise, the link will be broken.
|
Returns
|
void. None
|
Throws
|
fContentException
TAG_NOT_LINKED: The tag is not linked to a file.
LINK_TOO_OLD: The contents of the tag are more recent than the link, and noCheck was false.
fApplicationException
FILE_READ_ERROR: An error occurred reading from the file.
|
writeReplace
|
|
Parameters
|
None
|
Returns
|
Object. A serializable representation of this tag.
|