August 16, 2008

CATIA scripting














ここ一年くらいやるやる言っておいてようやく使えるようになった CATIA vba. Opening Statement やインターフェイスに慣れたり、という始めの一歩がいつもなかなか踏み出せないので、とにかく始められて嬉しいです。

...... が、やっていること自体はまだとても単純です。

Finally got hands on CATIA scripting. Most confusing thing about CATIA vba is the tree structure. Within Part Document only, CATIA has the following structure.

+-- PartDocument
+-
--- Part
+--
---- HybridShapeFactory
+---
----- HybridBodies
+----
------ HybridBody
+------
------ HybridShapes
+------
-------- HybridShape

And also, since CATIA has multiple ways to create a geometry,
"Dim ...... As ......" statements get a little tricky. Point Geometry for example, has 9 types including intersection point.

HybridShapePointBetween
HybridShapePointCenter
HybridShapePointCoord
HybridShapePointExplicit
HybridShapePointOnCurve
HybridShapePointOnPlane
HybridShapePointOnSurface
HybridShapePointTangent
HybridShapeInterSection

Anyway, a lot more to learn. I hope to post powerCopy script next time. What I have now is just CONTEXT of what I want to acheive.


Here is the link to the script tasks in order.
Here is the link to ONE MODULE (one of the tasks).

14 comments:

soosh said...

o- oremo yaritai kore


+-- PartDocument
+---- Part
+------ HybridShapeFactory
+-------- HybridBodies
+---------- HybridBody
+------------ HybridShapes
+-------------- HybridShape

kono zura zura naranderuno imi wakaranakatta.

-sooosh

yukie hirashima said...

>sooosh さん

このずらずら並んでたのは(笑) CATIA の tree の構造をスクリプトにする時に必要な hierarchy です。

HybridBody = Geometrical Set
HybridShape = Geometry

じゃあ複数形の Bodies や Shapes は何か?というところがヤヤコシイところのようです。

sophan said...

you lost me at hello.
this and roxanne lecture is extremely confusing:)

Anonymous said...

subarashii.

なんかレコードマクロしてちょいちょいいじくろうと思うとこのカティアスペシフィックのやつがずらずらでてくるのでげんなりしてしまうのです。何かいいラーニングマテリアルありますか??なんかカティアはスクリプトできないとどんどんめんどくさいことが増えていくなあと思うkのごろです。

Anonymous said...

hybridBody と hybridBodies があるんすね。なんてこったい。

yukie hirashima said...

> sophan

I wonder if she has already given the speech. Don't worry, everything clearly makes sense when you are on something...

yukie hirashima said...

>sooosh さん

わかりますわかります。何回も挑戦したんですけどその度にあの延々と続くツリー構造に萎えてくじけていたら、結局基本的なこと理解するまでに一年近くかかってしまいました。

そして今日もっとひどいの見つけました。
Parameters /Parameter /ParameterSets /ParameterSet

...こいつらの hierarchy がさっぱりわからず現在格闘中。

やはり V5 Automation を頼りに切ったり貼ったりしながら地道に debug していくしかなさそうです。

Anonymous said...

なんかヘルプファイルっつうか辞書みたいのおしえてもらった。一緒かどうかわからないけど

Program Files\Gehry Technologies\Digital Project V1,R3\DSB17\intel_a\code\bin\V5Automation.chm

yukie hirashima said...

>sooosh さん

yap. V5Automation. that's it.

Anonymous said...

World wide web has without a doubt built taking part in
extra fascinating. The theory also help you when you are considering going into higher limit would
help. You can join the millions of people who play online bingo.


Here is my blog post ... click through the up coming internet page

Anonymous said...

Way cool! Some very valid points! I appreciate you writing this write-up and also
the rest of the site is really good.

Feel free to surf to my page ... videos von youtube downloaden

Anonymous said...

Tennis balls, wiffle balls, ping pong balls, and golf balls can also be used.
Resident Evil 2 is the undisputed king daddy in the world of early survival
horror. A Twitter app for Zune has been created and is now available for download through Microsoft's Marketplace.

Feel free to surf to my web-site ... youtube converter

Anonymous said...

This is my first time pay a visit at here and i am genuinely pleassant to read
everthing at one place.

my webpage ... omerta city of gangsters

Anonymous said...

If there is a change in the search engine algorithms,
it is also up to the service provider to keep a watch
on such activities. B) SEO basics - Image 2: Select-'English' and 'All Countries and Territories'.
It's a competitive world out there on the world-wide web, but SEO consulting can help you dramatically improve your odds of being found in the din and getting your message across. Out of those 6 keywords, further reduce the number of keywords. SEO must be implemented by following a step by step process. If the conversion is higher with a certain keyword or a particular set of keywords, then the SEO vendor can focus on the same keyword to get it ranked high in all the search engines. The tips are as follows:-. This means that they follow only the steps given to them by Google and other major search engines. Online research is required to determine the packages and SEO Company. People these days use the Internet for a varied purpose. So, most move slowly when deciding on who becomes the company's SEO.
The growth management of small business can be accomplished with SEO as an integral
part of your overall Internet marketing strategy. The SEO agencies must take care of
the fact that the traffic is getting converted to potential customers.
An SEO strategy should combine a number of elements that work together to
get results for you. And, as more and more companies move
larger portions of their advertising budgets to internet marketing, there is an even greater demand
for their skills. Originally posted at: digitalmoz.
You need to try to find reputed SEO consultants.
A person can find all sorts of products available at various prices
on the internet. First of all a market survey is
done by them as to know the competitors analysis.
com is one of the premier portals on the World Wide Web which
has been formulated with the intention of providing SEO Hosting
options for webmasters around the world who
seek a way to ensure that their websites reach the top ranks of all major search engines.


Also visit my page http://iwanabitch.com/Wilhemina