레이블이 Knowledge-Pattern인 게시물을 표시합니다. 모든 게시물 표시
레이블이 Knowledge-Pattern인 게시물을 표시합니다. 모든 게시물 표시

Knowledge Pattern : Sample (Suwon 2nd Gym Project)

Let udf(UserFeature)
Let i(Integer)
Let li(Line)
Let st(String)

i=1

For i while i <= `List_SpaceFrameLine\Size`
{

li=`List_SpaceFrameLine` ->GetItem(i)
st="SpPipe_"+ToString(i)

udf= CreateOrModifyTemplate("Knowledge_Pattern_Catalog|SpaceFrame_PipeGeo",`SpaceFrame_Pipe`   ,`Relations\Knowledge Pattern_SpacePipe\UDFs`  ,i)
udf->SetAttributeObject("CenterLine", li  )
udf.Name=st
udf.Color=`Pipe_Color`
EndModifyTemplate(udf)

i=i+1
}



Knowledge Pattern의 기초(02)

Knowledge Pattern의 기초(01)

























CreateOrModifyDatum


 This method is only used in the Knowledge Pattern Feature.

Enables you to create or modify a datum.
-datumType: Indicates the datum type: Point, Line, Curve, Circle, Surface, Plane, Volume..
-Destination: Indicates the destination feature (PartBody, ...).
-PatternList: Indicates the pattern list.(The Knowledge Pattern List that should track the geometry)
-IndexInPatternList: Indicates the index number in the pattern list.