12.07.2013 Views

HOli.. - Memorial University's Digital Archives - Memorial University ...

HOli.. - Memorial University's Digital Archives - Memorial University ...

HOli.. - Memorial University's Digital Archives - Memorial University ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

end<br />

fprintf(fid,'%s %g %5 \n', 'Set swGuidePtC, i, ') = swSketchPt(I)');<br />

fprintf(fid,'''exit 3D sketch \n');<br />

fprintf(fid,'swModel.lnscn3DSketch \n');<br />

fprinlf(fid,'%s %g %5 \n', 'Set swSketch(', i, ') =<br />

swModel.FeatureByPositionReverse(O)');<br />

fprinlf(fid,'swModel.ClearSelection \n');<br />

fprintf(fid,'For z = 22 To 39 In');<br />

fprintf(fid,'bRel = swSkelchPl(z).Select2(True, 0) In');<br />

fprintf(fid,'Next z \n');<br />

fprintf(fid,'For z = I To 20 In');<br />

fprintf(fid,'bRel = swSketchPl(z)$elect2(True, 0) In');<br />

fprintf(fid,'Next z \n'l;<br />

fprintf(fid,'swModel.lnscrt3DSplineCurve (True) \n');<br />

fprintf(fid,'%s %g %5 \n', 'Set swFeatCurve(', i, ') =<br />

swModel.FeatureByPositionReverse(O)');<br />

Generate leading edge line as<br />

fprintf{fid,'swModel.ClearSelection \n');<br />

the reference line for loft<br />

end<br />

function<br />

fprintf(fid,"'create guide curve \n'); % create reference line<br />

fprintf(fid,'For z = 0 To 20 \n'); % define the point 0 to 20<br />

fprintf(fid,'bRet = swGuidePt(z).Select2(True, 0) \n');<br />

fprintf(fid,'Next z \n');<br />

fprintf(fid,'swModeLlnsert3DSplineCurve (False) \n'); % connect the points from 0<br />

to 20 to gebarate a reference line<br />

fprintf(fid,'Set swGuideCurve = swModeI.FeatureByPosirionReverse(O) \n'); %<br />

define the reference line position in Feature object<br />

Generate propeller blade by loft<br />

function<br />

fprintf(fid,'''create loft \n'); %create loft to generate a propeller blade<br />

fprintf(fid,'swModel.ClearSelection \n'); %clear anything currently selected<br />

116

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!