Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic System Architect (steve huntington)
Decrease font size
Increase font size
Topic Title: vba getproperty method
Topic Summary: I am trying to get a property from my usrprops file
Created On: 22-May-2007 19:53
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by SA Team, on Monday, June 4, 2007 3:05 PM

Answer:

Hi

Sorry for the delay I've been away from work.

Here is a sample USRPROPS.TXT and a macro to extract the property.

1. Load the USRPROPS.TXT into a new empty encyclopedia
2. Re-open the encyclopedia for the properties to be rebuilt
3. Create a new diagram of type 'Test Diagram'
4. Right click on the diagram surface and choose properties
5. Type some text into the 'Test Prop' field
6. Save the diagram (do NOT close it - the macro looks for an open diagram)
7. Paste the macro code into an empty macro module and Run the macro

Hope this helps
Ian

 22-May-2007 19:53
User is offline View Users Profile Print this message


robert mccauley

Posts: 22
Joined: 19-Jun-2006

How do i pull a property in my usrprops file. right now i have

myDiagram.getProperty("Custom Property")

and it does not return anything, this property is not a renaming of a SA property.
Thank you

Report this to a Moderator Report this to a Moderator
 23-May-2007 09:29
User is offline View Users Profile Print this message


SA Team

Posts: 148
Joined: 18-Nov-2005

 



-------------------------

Senior Software Developer
Telelogic UK Ltd.

Edited: 23-May-2007 at 09:31 by SA Team
Report this to a Moderator Report this to a Moderator
 23-May-2007 09:29
User is offline View Users Profile Print this message


SA Team

Posts: 148
Joined: 18-Nov-2005

Do you see the property in the diagram properties dialog within SA?

Please can you supply your USRPROPS.TXT changes.

Thanks
Ian



-------------------------

Senior Software Developer
Telelogic UK Ltd.
Report this to a Moderator Report this to a Moderator
 24-May-2007 15:45
User is offline View Users Profile Print this message


robert mccauley

Posts: 22
Joined: 19-Jun-2006

DIAGRAM "Example Diagram"
{
Property "Board Approved" {EDIT Boolean LENGTH 1 DEFAULT "F"}
}

I am trying to pull that board approved property.
Report this to a Moderator Report this to a Moderator
 24-May-2007 15:49
User is offline View Users Profile Print this message


robert mccauley

Posts: 22
Joined: 19-Jun-2006

The property is visible if i get the properties of the Diagram

Report this to a Moderator Report this to a Moderator
 4-Jun-2007 11:23
User is offline View Users Profile Print this message


SA Team

Posts: 148
Joined: 18-Nov-2005

Answer Answer

Hi

Sorry for the delay I've been away from work.

Here is a sample USRPROPS.TXT and a macro to extract the property.

1. Load the USRPROPS.TXT into a new empty encyclopedia
2. Re-open the encyclopedia for the properties to be rebuilt
3. Create a new diagram of type 'Test Diagram'
4. Right click on the diagram surface and choose properties
5. Type some text into the 'Test Prop' field
6. Save the diagram (do NOT close it - the macro looks for an open diagram)
7. Paste the macro code into an empty macro module and Run the macro

Hope this helps
Ian



USRPROPS.TXT
USRPROPS.TXT  (0 KB)



-------------------------

Senior Software Developer
Telelogic UK Ltd.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic System Architect forum.
There are currently 1 users logged in.
The most users ever online was 16 on 30-Oct-2008 at 14:46.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.