Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Two xml questions

Featured Replies

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

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

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

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

>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

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

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.

  • Author

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

Jan

 

 

 

"Beatus ille qui procul negotiis..."

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

  • Author

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

Jan

 

 

 

"Beatus ille qui procul negotiis..."

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.