Creating vector symbols

Discussion of application development using iX Developer, including but not limited to getting started, using the functions tab, properties, objects and installation.
Post Reply
motley
Posts: 16
Joined: Mon Jul 02, 2012 1:28 am

Creating vector symbols

Post by motley »

Is it possible to create new vector symbols - I notice the ones included are in .lib format is this a known vector format we can use ?

Thanks,

Chris

mark.monroe
Posts: 824
Joined: Tue Mar 13, 2012 9:53 am

Re: Creating vector symbols

Post by mark.monroe »

Have you taken a look at this forum posting? The lib vector files are not in a standard format.

http://ixtalk.beijerelectronics.com/vie ... =xaml#p671
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

motley
Posts: 16
Joined: Mon Jul 02, 2012 1:28 am

Re: Creating vector symbols

Post by motley »

Mark,

Yes I did read that - I ssume therefore that there is no way to create other vector symbols - I don't really want to learn the finer points of xaml just to position a graphic on the screen.

Perhaps the best way would be to use WPF objects ?

I have read your posts on the subject so I know WPF only works with Windows 7 panels and not CE.

It is quite a big limitation not being able to use vector based art apart from the very limited set provided.

Thanks, Chris

mark.monroe
Posts: 824
Joined: Tue Mar 13, 2012 9:53 am

Re: Creating vector symbols

Post by mark.monroe »

Take a look at the attached document. It details a ways to use Expression Blend to create vector graphics for iX.
Attachments
Import Expression Blend Graphics to iX-1.pdf
(240.56 KiB) Downloaded 1285 times
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

motley
Posts: 16
Joined: Mon Jul 02, 2012 1:28 am

Re: Creating vector symbols

Post by motley »

Mark,

Many thanks for that - will have a look...

Chris

motley
Posts: 16
Joined: Mon Jul 02, 2012 1:28 am

Re: Creating vector symbols

Post by motley »

Mark,

I have tried the method described in the pdf you sent me, and I after I paste in the xaml code (simple gradient fill triangle as a test) I get a message that there is an xaml error.

Here is the code after pasting:

<?neo version='2.0.356.0'?>
<natss:NeoElementCanvas Name="m_EditorCanvas" Width="1280" Height="800" FocusVisualStyle="{x:Null}" AllowDrop="True" ClipToBounds="True" Focusable="True" TextOptions.TextFormattingMode="Display" TextOptions.TextRenderingMode="ClearType" xmlns="http://schemas.microsoft.com/winfx/2006 ... esentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:natss="clr-namespace:Neo.ApplicationFramework.Tools.Screen.ScreenEditor;assembly=ToolsIde" xmlns:nacs="clr-namespace:Neo.ApplicationFramework.Controls.Symbol;assembly=Controls">
<nacs:SymbolViewbox SymbolColor="#FFC0C0C0" Name="SymbolViewbox2" Width="55" Height="40" RenderTransformOrigin="0.5,0.5" Visibility="Visible" Panel.ZIndex="1" Canvas.Left="533" Canvas.Top="336">
<Grid>
<ed:RegularPolygon InnerRadius="1" Margin="215,140,0,199" PointCount="3" Stretch="Fill" RenderTransformOrigin="0.49,0.55" HorizontalAlignment="Left" Width="87">
<ed:RegularPolygon.Fill>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FFE50000" Offset="0.362"/>
<GradientStop Color="#FFFDFDFB" Offset="1"/>
</LinearGradientBrush>
</ed:RegularPolygon.Fill>
<ed:RegularPolygon.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform Angle="-89.855"/>
<TranslateTransform/>
</TransformGroup>
</ed:RegularPolygon.RenderTransform>
</ed:RegularPolygon>
</Grid>
</nacs:SymbolViewbox>
</natss:NeoElementCanvas>

Thanks in advance,

Chris
p.s. Expression Blend 4, Win 7 Pro, ix Dev 2

User avatar
Ron L.
Posts: 214
Joined: Fri Jul 15, 2011 3:21 pm

Re: Creating vector symbols

Post by Ron L. »

First thing is to remove the Grid from the XAML-definition, think of the SymbolViewbox as the grid/container.

The second more serious problem is trying to access a namespace "ed" that is not referenced in the application. If I copy/paste the exact same XAML code to a WPF-application in Visual Studio I get the following error messages:
pic07711.gif
pic07711.gif (12.09 KiB) Viewed 15911 times
Best Regards,

Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer

motley
Posts: 16
Joined: Mon Jul 02, 2012 1:28 am

Re: Creating vector symbols

Post by motley »

Ron,

Thanks for the reply - I will give it a try later...

Chris

Text added...

Just to say I created the xaml file by follwing the instructions in the pdf that I was sent.

Post Reply