Rule Packages!

7719
10
Jump to solution
11-08-2013 10:37 PM
aminsediqfar
New Contributor
Hi there!

What is exactly rpk file? (i mean rule packages) and how can be created it?

Thanks.
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
MatthiasBuehler1
Frequent Contributor
Hi ..


In the CGA code, do you have a Start Rule annotation ?

E.g.

@StartRule MyRule -->     Hello.


To create a RPK, you must have 1 ( exactly 1 ) '@StartRule' annotation.

View solution in original post

0 Kudos
10 Replies
MatthiasBuehler1
Frequent Contributor
hi,


'rule packages' are packaged rules that include the assets.

note that rule packages by default contain only binary (compiled) 'CGB' rules, but the CGA rules can of course added.

you need CityEngine 2013 to create those RPKs. CE 2013 should be released soon!


m.
0 Kudos
AnnaDang
New Contributor

Hi Matt,

Just curious, how do you open a rule package and use it in CityEngine? I managed to download baselayer.zip containing the portland example with some rules as cga and some as rpk. I want to see how the rules are created.

Thanks,

Anna

0 Kudos
MatthiasBuehler
Occasional Contributor III

Hey Anna,

RPKs are basically zipped rule files including assets.

.rpk is actually a 7-zip file, so what you downloaded is a kind of zipped zip file.

If you have the .rpk file, you can use it directly in CityEngine and assign it to a shape.

If you want to look into the .rpk file, you can extract the contents as from a standard zip file. But it may be the case that the CGA code in text is not available in the rpk. It can be that only the CGB file is in there, which is a binary file that you can't open and look at.

Please let me know if there's more questions.

Matt

0 Kudos
GucluSen
New Contributor II
Hi Matt,

I try to export a cga rule file as rule package (.rpk file).
I can not share or create ".rpk", CE gives this warning:

[ATTACH=CONFIG]30101[/ATTACH]

I have read this article;
http://cehelp.esri.com/help/index.jsp?topic=/com.procedural.cityengine.help/html/manual/cga/rule_pac...

It's look like very easy but I cannot create a .rpk file. What is the meaning of "No start rule found"? Rule is active in my project and covered my buildings.
What shall I do?

Thanks,
Güçlü
0 Kudos
MatthiasBuehler1
Frequent Contributor
Hi ..


In the CGA code, do you have a Start Rule annotation ?

E.g.

@StartRule MyRule -->     Hello.


To create a RPK, you must have 1 ( exactly 1 ) '@StartRule' annotation.
0 Kudos
GucluSen
New Contributor II
I tried to use "@StartRule" definition and I have created my rule package.

Thanks 🙂
0 Kudos
MatthiasBuehler
Occasional Contributor III

Congrats that it works for you!

Matt

Matthias Buehler

Head of 3D Technologies

twitter: @MattB3D

------------------------------------

Garsdale Design Limited

matthias.buehler@garsdaledesign.co.uk

www.garsdaledesign.co.uk

0 Kudos
by Anonymous User
Not applicable

matt, did you just reply to a 1 year old post? 

0 Kudos
MatthiasBuehler
Occasional Contributor III

I got a reminder by GeoNet about a new post .. so it's fair to assume it's a current post.......

0 Kudos