The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniGraffle General (http://forums.omnigroup.com/forumdisplay.php?f=10)
-   -   Where to define personal variables? (http://forums.omnigroup.com/showthread.php?t=15096)

hansemannk 2010-01-21 02:50 AM

Where to define personal variables?
 
Hi everybody,

one question:

I would like to create a new variable - like:

<%myvariable="hello world"%>

where can I find the field to define the the variable etc.?

Regards Hans

hansemannk 2010-01-26 01:15 AM

Sorry, but I can't find the answer in your statement.

Brian 2010-01-26 01:24 PM

Hans, I suspect that the post above yours is actually from some sort of bot, not an actual person. I'll do a bit more research; if the post goes away, that's why.

I'm really sorry, but I don't know the answer to your question. If you send an email to the [EMAIL="omnigraffle@omnigroup.com"]support ninjas[/EMAIL], though, you're guaranteed an answer from someone who does. (We collectively browse the forums as we're able, but we can't guarantee a response to every thread.)

Hope this helps at least a little bit.

Joel 2010-01-26 01:47 PM

In OmniGraffle Professional, you can use the custom data key value pairs to create custom variables. So, if you have a custom data key "foo" whose value is "bar", then putting in the variable "<%UserData foo%>" will result in "bar" appearing in that part of the text.

Hope that helps,

hansemannk 2010-02-01 05:07 AM

[QUOTE=Joel;72372]In OmniGraffle Professional, you can use the custom data key value pairs to create custom variables. So, if you have a custom data key "foo" whose value is "bar", then putting in the variable "<%UserData foo%>" will result in "bar" appearing in that part of the text.

Hope that helps,[/QUOTE]

Thank you for your answer. But my problem is: where is the place / the field to define this variable?

I understand:

1) there is a field to define a variable, but I don't now the field.
2) inside the "work space" I insert a Textfield with this variable, for example <%foo%>.

If I understand something wrong, than sorry for that.

Joel 2010-02-01 09:52 AM

You define the variable in the Notes & Data Inspector (this is only in OmniGraffle Professional, so if you're running the standard version of OmniGraffle it's not present).

The Notes Inspector is part of the Properties inspector group.

hansemannk 2010-02-01 10:23 AM

[QUOTE=Joel;72553]You define the variable in the Notes & Data Inspector (this is only in OmniGraffle Professional, so if you're running the standard version of OmniGraffle it's not present).

The Notes Inspector is part of the Properties inspector group.[/QUOTE]

At first, I have the Professional Version.

Ok, thank you for your description. I have tested your tip - see screenshot. I am sure, there is something wrong, what I have done. It doesn't work.

I am feeling sorry to ask you again.

[IMG]http://www.diekadens.de/wp-downloads/foren/omnigraffle-variable.jpg[/IMG]

JKT 2010-02-01 10:51 AM

You need to put UserData in front of foo:

<%UserData foo%>

cwingrav 2010-02-19 07:36 AM

Great discussion. This solved my problem. NOW, it would be nice if there was an document object model (DOM) behind the scenes so that we could do something like "Document.version" to get the current document's version number and the like. This would be SO very useful to all us power users out here.

dghpts 2010-04-14 11:49 AM

Yes! great! Now I can do things here I was doing in Vectorworks!
One other question, and I think this is what cwingrav was asking about, how can I have a global value so I can have info on all the canvas's from one area? Like I currently use page name, creation date, etc.


All times are GMT -8. The time now is 11:05 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.