Basic help with creating new collection

875 views
Skip to first unread message

fishnugget77

unread,
Oct 30, 2009, 7:18:22 PM10/30/09
to Pencil Users
Howdy,
I'm having some major trouble. I'm trying to create a "Hello World"
type stencil collection just to get my feet wet, and keep running into
problems. I've got the following Definition.xml

<Shapes xmlns="http://www.evolus.vn/Namespace/Pencil"
xmlns:p="http://www.evolus.vn/Namespace/Pencil"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
id="IAB.DisplayAds.Shapes"
displayName="IAB Standard Ad Sizes"
description="Standard Web Ad Sizes from www.iab.net"
>
<Shape id="MediumRectangle" displayName="Medium Rectangle"
icon="Icons/file.png">
<p:Content xmlns:p="http://www.evolus.vn/Namespace/Pencil"
xmlns="http://www.w3.org/2000/svg">
<rect id="square" x="0" y="0" width="300" height="100"
style="fill:#cccccc; stroke-width:0; stroke:rgb(0,0,0)"/>
</p:Content>
</Shape>
</Shapes>


My folder also contains a Icons folder with a single file.png file
inside. When i try to create a zip file of the folder (using WIndows
XP -> create compressed folder), i can't bring the stencil file into
Pencil. I get the following error: "Error Installing Collection:
Collection specification is not found in the archive. The file may be
corrupted."

My goal is to create a collection with a single grey box. Eventually
going to expand it into a collection of Standard Web Banner place
holders.

Anyone have any advice?

Thanks,
AR

fishnugget77

unread,
Oct 31, 2009, 11:50:47 AM10/31/09
to Pencil Users
I figured out my own problem and wanted to post my solution in case
anyone else runs across the same problem.

The problem didn't lie in my xml code, but in the way i was creating a
zip archive. While i figured out the problem using my Mac (10.5), i
imagine the same principle will work with XP. My problem was that i
was trying to create a zip archive of the folder containing the
Definition.xml file and Icons. What worked for me (on my Mac) was to
open the containing folder, select the Definition.xml file and Icons
folder directly, right click and select "Compress" (aka create zip
archive). This file worked perfectly.

-AR

Duong Thanh An

unread,
Nov 2, 2009, 1:49:37 AM11/2/09
to penci...@googlegroups.com
Hello,

I'm not so familiar with Windows but I think the packaging is wrong. The
created package will contain a folder then under that folder comes the
Definition.xml and Icons.
Have you tried to start packaging by selecting the Definition.xml and
Icons folder instead of selecting their parent folder? I dont konw if
this work or not but compressing this way with 7zip works for me.

Hope this help.

/an

Darel Johnson

unread,
Jun 25, 2015, 5:07:34 PM6/25/15
to penci...@googlegroups.com
Hi Duong,

I created some shapes in Pencil and then added them to a private collection. However, when I try to export the collection to a zip archive, I only see a Definition.xml file - with no images/icons. Although, the xml file contains some base64 strings, it doesn't load anything (nothing happens) when I try to import the zip into another instance of Pencil on another PC.

Do you know why its not working?
Reply all
Reply to author
Forward
0 new messages