Страница 1 из 1

VB: Как узнать, деактивировано ли представление?

СообщениеДобавлено: 29 апр 2011 05:59
AnTe
Здравствуйте. Программирую под Catia, с использованием Automation (вызываю из под Delphi)

Не могу найти, как проверить, не деактивировано ли представление.

т.е. функции,
product3.ActivateDefaultShape
product3.DesactivateDefaultShape

работают "на ура", активировать/деактивировать программно я могу без проблем, а вот как узнать, активировано ли - не нашёл: у объекта Product только 16 свойств, и подходящего нет :(

Property Index
Analyze
Returns the Analyze object associated to the current product.
Definition
Returns or sets the product's definition.
DescriptionInst
Returns or sets the product's description for a component product.
DescriptionRef
Returns or sets the product's description for a reference product.
Move
Returns the product's move object.
Nomenclature
Returns or sets the product's nomenclature.
Parameters
Returns the collection object containing the product parameters.
PartNumber
Returns or sets the product's part number.
Position
Returns the product's position object.
Products
Returns the collection of products contained in the current product.
Publications
Returns the collection of publications managed by the product.
ReferenceProduct
Returns the Reference Product of this instance.
Relations
Returns the collection object containing the product relations.
Revision
Returns or sets the product's revision number.
Source
Returns or sets the product's source.
UserRefProperties
Returns the collection object containing the product properties

Возможно ли узнать, деактивирован ли объект, программируя в Automation ?

Re: VB: Как узнать, деактивировано ли представление?

СообщениеДобавлено: 29 апр 2011 11:03
Vladimir
Скорей всего могут подойти методы GetActiveShapeName и GetDefaultShapeName.

Re: VB: Как узнать, деактивировано ли представление?

СообщениеДобавлено: 29 апр 2011 19:37
AnTe
Спасибо! Действительно, по имени подходит. К сожалению, дома нет возможности ни проверить, ни почитать, после праздников, на работе потестю :good: