
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Guys, can you tell why this code is not working ?
And what is the significance of row ((1)) ?
Set pan_cut = robapp.Project.Structure.Results.FiniteElems.PanelCuts.Create
RView.Projection = I_VP_XY_3D
RView.ParamsPanelCut.CurrentResult = Cells(11, 2).Value
RView.ParamsPanelCut.IntegralValue = True
RView.ParamsPanelCut.Smoothing = I_VFMST_NO_SMOOTHING
RView.ParamsPanelCut.Layer = I_VFMLT_MIDDLE ((1))
RView.ParamsPanelCut.Descritpions = I_VDDT_TEXT
RView.ParamsPanelCut.Filling = I_VDFT_FENCE
RView.ParamsFeMap.CurrentResult = Cells(11, 2).Value
RView.ParamsPanelCut.Position = I_VDPT_IN_PLANE
RView.Redraw 1
pan_cut.DefinitionType = I_PCDT_LIMITED_PLANE
pan_cut.Point1.Set x1, y1, z1
pan_cut.Point2.Set x2, y2, z2
robapp.Project.Structure.Results.FiniteElems.PanelCuts.Store pan_cut, npcname1
pan_cut.Active = True
pan_cut.Color = 3
RView.Redraw 1
Solved! Go to Solution.