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: Using VBA and encyclopedia.CreateDefinition truncates definition name
Topic Summary: Unexpectated truncation of New Definition names
Created On: 25-Aug-2006 03:22
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 Duane Hennessy, on Tuesday, September 5, 2006 6:41 PM

Answer:
You get the same problems upon filtering too. You might try... 'Putting double quotes around the name. strNewAppName = chr(34) & "My New4 Name" & chr(34) Set newDefinition = saApp.Encyclopedia.CreateDefinition(strNewAppName, 309) I do not think I am alone when I say "I would love to see the code behind System Architect". I think it would brighten all of our days
 25-Aug-2006 03:22
User is offline View Users Profile Print this message


Matt Sheranko

Posts: 82
Joined: 7-Oct-2005

I am attempting to create a new definition in a 10.3 on XP encyclopedia.

When I use the following code to create a new definition name, the name gets truncated when I use non letter chars and spaces. 

' Set newDefinition = saApp.Encyclopedia.CreateDefinition(strNewAppName, 309)
 
It usually gets truncated at the first non alpha char or immediately after the first space and before the first non alpha char.  Very painful and humbling...

I was able to import the definition names and then programmatically get each definition and then update it.  I can also manually create the definition names through the UI.

Questions:
1) It this a known bug?  Am I doing something wrong here?
2) Are there any published rules for naming definitions?  I think there is an 80 char limit.  I assume letters and numbers are ok.  I also thought "-" and "_" and "." and even "/" appear to work correctly when definitions are created manually.

Thanks for any help.



-------------------------
Thanks,

MattS
Report this to a Moderator Report this to a Moderator
 26-Aug-2006 12:14
User is offline View Users Profile Print this message


Duane Hennessy

Posts: 112
Joined: 18-May-2006

Answer Answer
You get the same problems upon filtering too. You might try... 'Putting double quotes around the name. strNewAppName = chr(34) & "My New4 Name" & chr(34) Set newDefinition = saApp.Encyclopedia.CreateDefinition(strNewAppName, 309) I do not think I am alone when I say "I would love to see the code behind System Architect". I think it would brighten all of our days
Report this to a Moderator Report this to a Moderator
 26-Aug-2006 14:00
User is offline View Users Profile Print this message


Matt Sheranko

Posts: 82
Joined: 7-Oct-2005

Duane,

It works.  Thanks again for the help. 

See the code behind System Architect!  I would be happy with good documentation and sample code.  At least Telelogic created this forum.  That's a good start, maybe they will update documentation next!



-------------------------
Thanks,

MattS
Report this to a Moderator Report this to a Moderator
 5-Sep-2006 18:37
User is offline View Users Profile Print this message


Matt Sheranko

Posts: 82
Joined: 7-Oct-2005

As an aside, createSymbol DOES NOT throw the same errors when you attempt to name a symbol with non alpha chars.

If you concatenate chr(34) to the string symbol name, it simply adds quotes to the symbol name! Not what you want to happen...or what I expected.

-------------------------
Thanks,

MattS

Edited: 5-Sep-2006 at 18:37 by Matt Sheranko
Report this to a Moderator Report this to a Moderator
 5-Sep-2006 22:53
User is offline View Users Profile Print this message


Duane Hennessy

Posts: 112
Joined: 18-May-2006

SA has a somewhat syrupy consistency

Makes you wonder whether the missing Laugh emoticon, from the Select Emotion list, was by error or by design.

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.