Jump to content

Sign in to follow this  
phjvh

Two xml questions

Recommended Posts

Guest iagman

1.If && is written as "ampersand amp; ampersand amp;"how is "or" written? 2.What are the parameters needed to draw a vector arc. I need a circular arc that spans 300-degrees.3.Okay, I lied about two question. Where can you find more details regarding vectors. A bit of info is found here but mostly it is a discussion between folk that already know vectors and it's hard to follow their conversation.Thanks,Glenn

Share this post


Link to post
Share on other sites

Glenn,1. type "||"2. Arc vectors can't be drawn with a single command so far I've tested. However, as you may have found searching this forum, some tricks can be used to obtain something pretty much like of.3. Almost everything I learned about vectors was after reading dozens of messages from here. I don't know of simple tutorials for vector drawings in XML, though others maybe. It's a matter of time, patience and enthusiasm..Tom

Share this post


Link to post
Share on other sites

Hi, you could draw a circle, then follow this code with a drawn 'filled-in' triangle with a 60 degree angle. This would act as a mask and block out that part of the circle you do not require.Or, you could use a mask bitmap. You just add the vector code to that part of the gauge where you would normally put a bitmap for the circle.cheers,nick

Share this post


Link to post
Share on other sites
Guest iagman

Thanks, guys,Nick, vectors would sure make for a popular tutorial, the first of its kind.Glenn

Share this post


Link to post
Share on other sites

>Thanks, guys,>Nick, vectors would sure make for a popular tutorial, the>first of its kind.>GlennHi Glenn,Now that you know how to do it: what's holding you back in creating such a tutorial ??? :-lol I would be interested too ..Cheers, Rob

Share this post


Link to post
Share on other sites
Guest iagman

Such a tutorial would shorter than my article on health and hygiene, ie, if our butts and mouths were switched, we would eat less and bath more.Glenn

Share this post


Link to post
Share on other sites
Guest airhead

In ref. to the and/or question in the original post, you can just use "and" and "or" instead of the double ampersand or double pipe symbols. You might find it easier to read that way when working on the code. I've also found a few instances where using the symbols can cause issues in the parts xml file for interactive geometry in the VC.

Share this post


Link to post
Share on other sites

Hi,Even more simple, use the "clip" command in the circle element.No need of bitmaps or masks etc.Jan"Beatus Ille Procul Negotiis"

Share this post


Link to post
Share on other sites

Depends on the requirement I guess. Clip commands always remove a rectangle, whereas using a poly mask or better still a bitmap mask has more flexability,nick

Share this post


Link to post
Share on other sites

Nick,Completely right.But if one only needs an arc mode in the HSI the "clip" is just easy.Jan"Beatus Ille Procul Negotiis"

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...