查看单个帖子
旧 2009-05-04, 03:35 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】achatchpatterntype customdefined

achatchpatterntype customdefined
achatchpatterntype customdefined
is it possible with directdwg activex to create vectorhatches which are defined in an external pat file
thanks
franz

yes, it is possible ( at least in upcomming release). you should set support path to folder where pattern located and then you could create new pattern:
dim oapp as iacadapplication
dim odb as iacaddatabase
dim hatchobj as iacadhatch
.......
oapp.preferences.files.supportpath = "c:\myapp\patterns\"
' define the hatch
patternname = "myown"
patterntype = achatchpatterntypecustomdefined
bassociativity = true
' create the associative hatch object
set hatchobj = odb.modelspace.addhatch(patterntype, patternname, bassociativity)
.......
myown.pat file locates in 'c:\myapp\patterns\'
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)